Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!

How to check values of two field within a Form

Avatar

Level 2

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

2 Replies

Avatar

Employee Advisor

Hi Robert,

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

Avatar

Level 2

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