In sailpoint iiq I have created a form who’s field have few validation scripts in order to let it behave as required.
Till now I have done it inside the form only. If I want to write the validation codes in a custom validation file and give reference of it in the form, how can I?
Hi @pctripathi - you can use a ValidationRule as an alternative to ValidationScript.
<ValidationRule>
<Reference class="Rule" name="My Validation Rule"/>
</ValidationRule>
Hi @ryan_toornburg
So, this will be the format I should use in the format to reference the rule file.
But for the rule file what should be the format and how should I add validation script for all the fields in one file?
It would be a regular rule and it would return the validation error or null just like a script would based on the logic you have.
@ryan_toornburg
I have severl fields and each of them have different validationscript inside.
Do I then have to create a custom rule for each and every field?
I searched for for custom and rule files. Custom files just have entry and value, no script and rule files have source in which there is script written but only one at a time.
Your options for form field validation are either a validationScript in the Form or a validationRule witch is just a reference to a standalone rule. If using the validation Rule you would need one for each field if different logic was required. Is there a reason you don’t want to use the script?