terminus-ui
terminus-ui copied to clipboard
Validators: Custom LinkedIn Form validator
trafficstars
This feature is needed for LinkedIn Forms.
We need a custom validator that product can use with the LinkedIn form selection dropdown. In this case, we need to validate a specific property exists on the selection.
- [ ] Check selection for a top level property
COMPANY_NAMEusing theisUnsethelper- [ ] If found, control is valid
- [ ] If not found, the error message
Form must have Company Name as an attributeshould be returned
NOTE: Ideally this would be a more generic validator that could check for one or more properties existence. But since we currently have a limitation on custom validation messages we need to make this specific for LinkedIn in order to support the correct message.
Resources
Need feedback from the core team before we know if this is a viable approach.