08/29/2023 03:59 AM
Hi,
We have a dynamic attribute named EndDate on the request form. We are trying to achieve a data validation control where EndDate should not be more than one year & should not be past dated.
Any suggestions on how this can be achieved?
Thank you,
Snehal
08/29/2023 04:05 AM - edited 08/29/2023 04:06 AM
Hi @SnehalW
Can you try with below expression
${((EndDate > currentdate) && (EndDate < (currentdate+364)))}
Thanks,
Smitha
08/29/2023 04:13 AM
Hi,
Where can we put this condition? This is the dynamic attribute created for endpoint and not for create/update user forms.
Thank you,
Snehal
08/29/2023 04:07 AM - edited 08/29/2023 04:08 AM
Hi @SnehalW ,
Can you configure the validation condition on the dynamic attribute as below and check:
${((EndDate >= currentdate) && (EndDate < currentdate.plus(365)))}
Here enddate is the dynamic attribute.
Solved: Dynamic Attributes - ${variable} in Failure Messag... - Saviynt Forums - 26284
Data Validation Condition - Dynamic Attribute - Saviynt Forums - 7734
Default values and Validation conditions for Date ... - Saviynt Forums - 8085
08/29/2023 04:17 AM
Hi,
Where can we put this condition? This is the dynamic attribute created for request type -Service Account and not for create/update user forms.
Thank you,
Snehal
08/29/2023 04:29 AM
The validation condition is not available at the endpoint/service account form.
The only type of validation supported is a regex validation and that too for string,largettext,password,number attribute types.
Please raise an enhancement request in ideas portal. (Saviynt Ideas Portal)