Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

Data validation on dynamic attribute fields

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on August 14 2019 at 16:31 UTC

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.

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
5 REPLIES 5

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on August 16 2019 at 04:38 UTC

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}
This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on August 19 2019 at 18:47 UTC

Hello,


Thank you, this works!

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on March 17 2020 at 12:23 UTC

i tried this is not working after saviynt upgrade 5.5, it says the length is not a valid function .


This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on April 4 2022 at 14:09 UTC

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

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on April 4 2022 at 14:53 UTC

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

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.