Hello! I have a question about a formula for hiding a panel with multiple conditions. I've attached a document with screenshots and details. Any help would be greatly appreciated.
Solved! Go to Solution.
I have simplified the control names a bit, but you should be able to follow.
!(jobType === "Member/Marketing/Community/Org." ||
(jobType === "Health Promotion (Disease Management)" &&
HP_Job_NewProject === "No"))
If the jobType equals "Member/Marketing/Community/Org." (true), then it gets inverted to (false), revealing the control
if the jobType equals "Health Promotion (Disease Management)" (true)
if the HP_Job_NewProject equals "No" (true)
it results in a true statement, which gets inverted to false, revealing the control.
Every other option will hide the panel.
Glad to hear that it worked out!
If possible, could you mark my answer as correct?
As for the == and ===, the only difference is that === checks the type while == doesn't.
... Still there? Great!
You've already used some of these types in your work.
"Hello I Am A Sentence" is a String (notice the quotes), while...
4 is a Number.
The reason that you might want to use one over the other though... well that's where it gets a little more... philosophical.
Using something like == means that the statement
4 == "4"
4 === "4"
equals false, because it not only checks the values of the data being compared, but the types of those values! This is just like the sentence above, only with the types un-marked out. "The Number 4 is equal to the Word 4"!
Using ===, !==, "" (instead of single quotes), and a bevy of other things are part of a standard that I use to make sure that my code is consistent and correct. All of my own used conventions come from Douglas Crockford, who is a guru of the language (and might understand better than anyone at this point).
One thing that I would recommend would be to name your controls with much shorter (and even more generic) names.
It really helps to narrow down exactly what it is you're working with when what you're looking at isn't a long list of characters!
The forums will be here if you run into any more speed-bumps!