Hello,
I need to know how it's possible to implement data validation on input form
Simple case (value not dependent on persisent data) is clear to me:
<leave>
<check expr="@id !=''">
<error>You must populate the Id</error>
</check>
</leave>
I don't understand how to make more complex check on input data
For instance: Avoid that ID input data typed by the operator already exists on the table MyTable (whose key is ID) that I'm populating with this form
Solved! Go to Solution.
Okay so I got the answer for this now. I have a case where i want to validate URL field over form using Regex.
Steps
A) Create a new method in that schema .
B) create one JavaScript file for that scehma and with function definition
C) In form , call above define method using soapCall tag
<leave>
<soapCall name="methodName" service="cus:schemaName">
<param exprIn="@param" type="string"/>
</soapCall>
</leave>
Thanks,
Kapil
I have similar question, I want to add Email validation Regex over Forms using <check expr> . Can someone please help.
Views
Replies
Total Likes
Okay so I got the answer for this now. I have a case where i want to validate URL field over form using Regex.
Steps
A) Create a new method in that schema .
B) create one JavaScript file for that scehma and with function definition
C) In form , call above define method using soapCall tag
<leave>
<soapCall name="methodName" service="cus:schemaName">
<param exprIn="@param" type="string"/>
</soapCall>
</leave>
Thanks,
Kapil
Views
Likes
Replies