Support basic validation rules on amp-selector
See original GitHub issueLooking for a workaround for this feature? See couple of them below in the comments
The most basic one would be to support required
.
This will probably require implementing the different validation/input interfaces the browser provides for built in inputs. For example, the following APIs are used on input
:
- checkValidity():boolean
- validity:ValidityState
- validityMessage:string
These should probably already work on the current amp-selector
.
- focus():void
blur
event
Extra bonus points to support:
min
andmax
for multiple selection limitation.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
amp-selector: Add support for required attribute for form ...
As such, it supports attributes disabled, form, multiple, and name just like a ... Support basic validation rules on amp-selector #6930.
Read more >Examples of Validation Rules - Salesforce Help
Validation rules verify that the data a user enters in a record meets the standards you specify before the user can save the...
Read more >Restrict data input by using validation rules - Microsoft Support
Validations rules help you check data as it is added to your Access desktop database which improves accuracy and consistency of data entry....
Read more >Documentation: <amp-selector> - amp.dev
Validation. See amp-selector rules in the AMP validator specification. Need more help? You've read this document a dozen times but it doesn't really...
Read more >How to Use Validation Rules in Salesforce (+ Examples)
Data validation supports better Salesforce data quality. ... Take basic Account validation rules further by creating multiple validation ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@aghassemi, Just a quick follow=up. You’re Swell! We got #1 working with ease! Thank you. And, enjoy the net neutrality that CA just passed 😃
dedup with https://github.com/ampproject/amphtml/issues/22750