Data validation on a FORM

Avatar

Avatar

salvdangelo

Avatar

salvdangelo

salvdangelo

25-03-2019

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

Jean-Serge Biron

davidk23955130

wodnicki

Amit_Kumar

Amy_Wong

Adobe Campaign Classic

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

kapilKochar

MVP

Avatar

kapilKochar

MVP

kapilKochar
MVP

03-06-2019

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

Answers (1)

Answers (1)

Avatar

Avatar

kapilKochar

MVP

Avatar

kapilKochar

MVP

kapilKochar
MVP

28-05-2019

I have similar question, I want to add Email validation Regex over Forms using <check expr> . Can someone please help.