Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read only form fields #12244

Merged

Conversation

melohagan
Copy link
Collaborator

@melohagan melohagan commented Nov 1, 2023

Description

Various form fields now have a setting to make them readonly.

The two exceptions are attachment fields and the code scanner fields which have the same behaviour regardless of whether the parent form is disabled or readonly.

For form blocks, View mode now sets the fields to readonly instead of disabled, as disabled fields are quite difficult to read, however you can override this with the disabled setting if wanted.

If disabled is checked, then the readonly setting will not display.

Addresses:

Screenshots

Screen.Recording.2023-11-01.at.16.47.04.mov

Feature branch env

Feature Branch Link

Copy link
Member

@aptkingston aptkingston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @melohagan! Just left one suggestion about how to better handle click events in some of the fields 👍

packages/bbui/src/Form/Core/Checkbox.svelte Outdated Show resolved Hide resolved
packages/bbui/src/Form/Core/CheckboxGroup.svelte Outdated Show resolved Hide resolved
packages/bbui/src/Form/Core/RadioGroup.svelte Outdated Show resolved Hide resolved
packages/bbui/src/Markdown/MarkdownEditor.svelte Outdated Show resolved Hide resolved
@melohagan melohagan requested a review from aptkingston November 2, 2023 15:55
Copy link
Member

@aptkingston aptkingston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@shogunpurple shogunpurple merged commit c1c9dbb into master Nov 7, 2023
10 checks passed
@shogunpurple shogunpurple deleted the budi-7105-builder-option-for-read-only-form-fields branch November 7, 2023 10:13
@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants