Underdog
Apprentice

Show Panel if "Yes" or "No" is Chosen

Jump to solution

Hello Everyone,

 

I would like the below panel to show ...

Underdog_0-1663615003098.png

 

... when I chose either "Yes" or "No."  The panel is initially hidden until either choice is selected.

 

Below is the syntax I'm using.  It's not quite right, so I'm asking for help/correction.

 

not(or(contains(DoYouKnowYourSolution,"Yes"),or(contains(DoYouKnowYourSolution,"No")

 

Thank you!

 

Labels: (1)
0 Kudos
Reply
4 Replies
bamaeric
Communicator

Re: Show Panel if "Yes" or "No" is Chosen

Jump to solution

Which forms designer are you using?

 

Try using this as your formula: isNullOrEmpty(DoYouKnowYourSolution)

 

Reply
Underdog
Apprentice

Re: Show Panel if "Yes" or "No" is Chosen

Jump to solution

I think "Responsive."  Not the "Classic."

0 Kudos
Reply
Garrett
Communicator

Re: Show Panel if "Yes" or "No" is Chosen

Jump to solution

Hi  @Underdog  

 

@bamaeric  has provide the answer your question. His answer works better when you have more options for the "DoYouKnowYourSolution" Choice control 

 

Alternative answer:

DoYouKnowYourSolution == ""

//This should also work if there is more choices

 

This works for 2 choices. You will need to add more conditions when you add choices. 

Not (DoYouKnowYourSolution == "Yes" ||  DoYouKnowYourSolution == "No" )

 

I believe this is what you wanted to achieve

Not(or(contains(DoYouKnowYoursolution, "Yes"), contains(DoYouKnowYoursolution, "No"))) 

Garrett_1-1663637568450.png

// 1. Extra OR

// OR Runtime Function => or(boolean1, boolean2)

// This will take 2 conditions. If you have more that 2 conditions, use this 'or'  ||

// (boolean1 || boolean2 || boolean3 || boolean4)

// 2. Unbalanced Parentheses

// 5 left Parentheses "(" vs 2 right Parentheses ")"

 

This should also work

Not(contains(DoYouKnowYoursolution, "Yes") || contains(DoYouKnowYoursolution, "No")) 

 

Cheers

Reply
Underdog
Apprentice

Re: Show Panel if "Yes" or "No" is Chosen

Jump to solution

I chose to use:

Not(DoYouKnowYourSolution == "Yes" ||  DoYouKnowYourSolution == "No" )

 

I felt it would be the simplest for folks here to understand when I leave in a couple weeks.  I had to take the space out after "Not", as it was causing an error. 

 

Underdog_1-1663677778843.png

 

Thank you for your help!

 

 

 

 

 

0 Kudos
Reply