You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forms: Add implicitly required single input form (#45300)
* Make single input required by default
When a form has only one input field, we're making it required by
default
* Add form level required indicator settings
I've added display settings for the required indicator badge. Options
are:
- Text (eg. "(required)")
- Asterisk (*)
- Hidden, only shows on form validation
* Make the required asterisk red in the editor too
* Hide required indicator in single-input forms
If there's only one field, it's obvious it's required
* changelog
* Revert "Hide required indicator in single-input forms"
This reverts commit 42edffb.
* Revert "Make the required asterisk red in the editor too"
This reverts commit cdf23bc.
* Revert "Add form level required indicator settings"
This reverts commit 64d2a56.
* Move required indicator settings to the field level
Also, use a radio buttons instead of a dropdown.
* Make required indicator a sync attribute
Now, all required fields will sync to the same value when sync is
activated.
* Fix required indicator multi-line field rendering
The value of the required indicator wasn't being updated in the editor
* Fix required indicator phone field rendering
The value of the required indicator wasn't being updated in the editor
* Fix tests
* Update changelog
* Simplify check for required field
* Update required indictor control to toggle
* Consolidate duplicate sync logic to hook
* Fix phan issues
* Sync required label across blocks
* Fix more phan issues
---------
Co-authored-by: Erick Danzer <[email protected]>
0 commit comments