terminus-ui icon indicating copy to clipboard operation
terminus-ui copied to clipboard

Validators: Custom LinkedIn Form validator

Open benjamincharity opened this issue 6 years ago • 1 comments
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_NAME using the isUnset helper
    • [ ] If found, control is valid
    • [ ] If not found, the error message Form must have Company Name as an attribute should 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

benjamincharity avatar Jun 24 '19 12:06 benjamincharity

Need feedback from the core team before we know if this is a viable approach.

benjamincharity avatar Jun 24 '19 16:06 benjamincharity