Expand my Community achievements bar.

Don’t miss the Workfront AMA: System Smarts & Strategic Starts! Ask your questions about keeping Workfront running smoothly, planning enhancements, reporting, or adoption, and get practical insights from Adobe experts.
SOLVED

Re: Validation Logic in custom forms

Avatar

Level 2

Hello! I'm trying to set up a validation logic where a different message will appear depending on the selection made on a single-select dropdown field, DE:Series. 

 

For example, if I select value "Option 1" in the Series field, I see the following text: Select Brief for content type. However if I select "Option 2", I want to see the following text: Select Podcast for content type.

 

I'm hitting a wall as I try to program the logic. This is what I have so far, but it's not working as expected:

IF({DE:Series}=="Option 1","Select Brief for content type."||{DE:Series}=="Suite Talk", "Select Podcast for content type.")

 

Is it possible to have multiple messages for each value in the logic? TIA!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Lyndsy,

I tried the below example and it seemed to work for me.   This is the code I put together:

IF({DE:Product Core}="Channels & Connectivity","Select Brief for content type.",IF({DE:Product Core}="Cross-Currency Payments","Select Podcast for content type"))

 

This is what the users sees on the form when they are filling it out and make their selection:

 

Kurt_Jones_0-1755192094790.png

Basically chaining together IF statements of all your options and what message you'd like to show the user.

View solution in original post

3 Replies

Avatar

Community Advisor

ZaidaGr1 -

Oops, I provided a response to Lyndsy by mistake, up above that was meant for you, see if that is a potential solution for you

Avatar

Level 2

@Kurt_Jones This worked, thank you!

Avatar

Correct answer by
Community Advisor

Lyndsy,

I tried the below example and it seemed to work for me.   This is the code I put together:

IF({DE:Product Core}="Channels & Connectivity","Select Brief for content type.",IF({DE:Product Core}="Cross-Currency Payments","Select Podcast for content type"))

 

This is what the users sees on the form when they are filling it out and make their selection:

 

Kurt_Jones_0-1755192094790.png

Basically chaining together IF statements of all your options and what message you'd like to show the user.