How to check values of two field within a Form

Avatar

Avatar
Validate 1
Level 1
roberts32477966
Level 1

Likes

0 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
roberts32477966
Level 1

Likes

0 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
roberts32477966
Level 1

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
Validate 1
Level 1
roberts32477966
Level 1

Likes

0 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
roberts32477966
Level 1

Likes

0 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
roberts32477966
Level 1

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
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
Vapsy
Employee

25-04-2017

Hi Robert,

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