praxedis | Posts: 45

New Signer Experience: Validation message is adding name of field.

0 votes

We 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.


Duo_Liang | Posts: 3776

Reply to: New Signer Experience: Validation message is adding name of field.

0 votes

Hi 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


praxedis | Posts: 45

Reply to: New Signer Experience: Validation message is adding name of field.

0 votes

Thanks Duo!


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off