DataViews: Add min/max validation support to DataForm inputs#73465
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
d6ba3c4 to
051a626
Compare
|
@jorgefilipecosta this needs to be implemented in |
3d04e64 to
da3509e
Compare
This reverts commit 1490580.
Co-authored-by: André <583546+oandregal@users.noreply.github.com>
848a131 to
a2fd0c0
Compare
Hi @oandregal it was fixed 👍 |
| ( formField.field.type === 'text' || | ||
| formField.field.type === 'email' || | ||
| formField.field.type === 'url' || | ||
| formField.field.type === 'telephone' || | ||
| formField.field.type === 'password' ) |
|
We also need to support |
Adds min/max validation support for DataForm input controls, part of #71500.
cc: @oandregal
Field Types Supported
Text-based fields (character count validation minLength/maxLength):
texttextareaemailpasswordtelephoneurlNumeric fields (value range validation min/max):
integernumberImplementation
Rulestype to includeminLength,maxLength,min, andmaxpropertiesminMaxtoggle to demonstrate validation behaviorTesting
Enable the
minMaxcontrol in the Validation Storybook story to test the validation behavior across different field types.