04/12/2022 01:23 PM
Is there a way to validate number fields in dynamic attributes (under the Register User).
I am trying to validate the following conditions:
1. Validate that a number field only contains 10 digits (for telephone number)
2. Validate that text box does not contain any digits.
Solved! Go to Solution.
04/12/2022 03:12 PM
You can try using the following in the Validation condition of the dynamic attribute. In the following example, "Mobile" is the name of the dynamic attribute. We are either the length is zero or ten and the input is a number and greater than zero.
${Mobile.length() == 0 || Mobile.length() == 10 && Mobile.isNumber() && Double.valueOf(Mobile) > 0} |
04/12/2022 03:12 PM
Hello,
Thank you, this works!
04/12/2022 03:12 PM
i tried this is not working after saviynt upgrade 5.5, it says the length is not a valid function .
04/12/2022 03:12 PM
Hi Team,
How can we add a validation on a dynamic attribute field; to restrict user submit the request if the field value is empty.
Thanks,
Neha
04/12/2022 03:12 PM
Hi, Neha,
In dynamic attribute configuration there is a checkbox "Required" that you must check in order to force a value in the field to submit the request.
Regards,
Adrien COSSON