New Signer Experience: Validation message is adding name of field.
Monday, March 22, 2021 at 01:15pmWe are moving over to New Signer Experience. We are using Java SDK to add validation to fields like this:
.withValidation(FieldValidatorBuilder.regex("^\\d{2}/\\d{4}$").required().withErrorMessage("Please enter a valid retirement date (MM/YYYY)"))
The classic signer experience just provided the error message. The new signer experience is adding the name of the field. Please see attached.
Do I need to do something different in the code.
Reply to: New Signer Experience: Validation message is adding name of field.
Monday, March 22, 2021 at 01:41pmHi Esteban,
"{field_name} : {custom_error_message} or {predefined_validation}"
This is a standard pattern applied to all validation UI labels, no matter the error message is caused because the field is mandatory, or the input is too long/short or didn't meet the customized regex. So you can either give the field a more readable field name, or don't specify the name in SDK code and the default UI labels will reference the fields as "Text Field 1", "Text Field 2", so on so forth.
Duo
Reply to: New Signer Experience: Validation message is adding name of field.
Monday, March 22, 2021 at 02:11pmThanks Duo!
Reply to: Hi Esteban, "{field_name…
Tuesday, April 6, 2021 at 09:45amHi Duo:
Just a follow-up: Can {field_name} have any spaces in it?
Reply to: Hi Duo: Just a follow-up:…
Tuesday, April 6, 2021 at 09:55amHi Esteban,
Yes, you can have space in the field name.
Duo