and more in a single search tool across platforms. Read the announcement here. |
01/25/2024 03:46 AM
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
01/25/2024 05:56 AM - edited 01/25/2024 05:57 AM
Similar like show hide use REQ & NREQ
NREQ - is not required ( when attribute is hidden)
REQ - required. Attribute when attribute is shown
01/28/2024 07:04 PM
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
01/28/2024 08:55 PM
NREQ / REQ should supress the validations
01/28/2024 10:03 PM
We have tried using REQ/NREQ and they do not supress the validations
01/28/2024 10:15 PM
Actually, you can somehow achieve this by putting EDIT### or NEDIT### in the action string
01/28/2024 10:29 PM
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.
01/28/2024 11:44 PM
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
01/29/2024 01:22 AM
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.
01/29/2024 01:27 AM
If this reply answered your question, please Accept As Solution and give Kudos.