Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Validation for hidden dynamic attributes on user form

tanvi_gaikwad
New Contributor II
New Contributor II

We have created a custom user creation form with dynamic attribute 'usertype'. There are different dynamic attributes depended on the value of 'usertype' which SHOW or HIDE based on requirement.

For example - 

if usertype - AUH -> attribute1 is shown and attribute2 is hidden

if usertype - MPE -> attribute2 is shown and attribute1 is hidden

In the above scenario, we have put validation conditions on attribute and attribute2.

When submitting the user form for usertype=AUH, attribute1 is visible and its validation condition is checked. But along with this, the validation condition for attribute2 is also checked even though it is hidden. Thus we are unable to submit the request.

Is there a way to disable the validation checks of hidden attributes?

Thanks

9 REPLIES 9

rushikeshvartak
All-Star
All-Star

Similar like show hide use REQ & NREQ 

NREQ - is not required ( when attribute is hidden)

REQ - required. Attribute when attribute is shown

https://forums.saviynt.com/t5/identity-governance/register-user-form-show-hide-attributes/m-p/66034#...


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

tanvi_gaikwad
New Contributor II
New Contributor II

Hello Rushikesh, many thanks for the reply.

We have tried using REQ/NREQ, still the error persists. The REQ/NREQ is working when we want to mark these attributes as mandatory or not mandatory, but it is still checking the validation condition of these attributes. Is there any way to suppress the validation condition check for these hidden and non mandatory attributes ?

thanks

NREQ / REQ should supress the validations 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

tanvi_gaikwad
New Contributor II
New Contributor II

We have tried using REQ/NREQ and they do not supress the validations

Actually, you can somehow achieve this by putting EDIT### or NEDIT### in the action string


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

tanvi_gaikwad
New Contributor II
New Contributor II

Can you provide a detailed list of these configuration values like HIDE/SHOW, REQ/NREQ, EDIT/NEDIT and example syntax to use them. 

The EDIT/NEDIT will be for able to edit or not edit the attribute. We dont think that is the usecase here.

CR
Regular Contributor III
Regular Contributor III

Hi,

Can you try below syntax:

Parent Attribute : ShowDate

Child Attribute : Date

 ShowDate Attribute Action String : SHOW###Date###Yes___HIDE###Date###No

->when click on Yes Date attribute will display and when click on No it will hide

-> need to add under parent attribute


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

tanvi_gaikwad
New Contributor II
New Contributor II

Hello, many thanks for your response. 

SHOW and HIDE is working as expected on our attributes, the request here is to suppress the validation condition for attributes which are marked are NREQ. 

Currently we are using regex to validate the data instead of the 'validation condition' field. But this is not feasible for all attribute types. 

CR
Regular Contributor III
Regular Contributor III

If this reply answered your question, please Accept As Solution and give Kudos.

 
Regards
Raghu

Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.