How to check values of two field within a Form

Avatar

Avatar

roberts32477966

Avatar

roberts32477966

roberts32477966

25-04-2017

Hi all,

I try to check if two fields in a form have values or not. But my logic doesn't work. May you have some idea what's wrong?

delivery_form.jpg

CODE:

<container [...]>

<leave>

      <check expr="@Offer_Category == null and @PDF_Link == null">

           <error>Please check that PDF_Link or Offer Category are not empty.</error>

      </check>

</leave>

</container>

Many Thanks and best regards

Robert

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

roberts32477966

Avatar

roberts32477966

roberts32477966

25-04-2017

Hi Vipul,

thanks for your fast response. I Tried your assumtion. Unfortunately without success. Could it be that the "<leave>" is on the wrong place? Or do you have other ideas?

Many thanks and best regards

Robert

Avatar

Avatar

Vapsy

Employee

Avatar

Vapsy

Employee

Vapsy
Employee

25-04-2017

Hi Robert,

Try using expr="[@Offer_Category] == '' and [@PDF_Link] == ''"