Forum Discussion
Mellissa Perez
Feb 26, 2019Copper Contributor
Hide HTML text based on field value
Hello. I know that it is possible to hide a field(s) based on a field value. Is it possible to hide part of an HTML text input based on a field value? I added an HTML field to that contains...
- Feb 27, 2019Your variable probably isn't getting set because of the selected usually should be something like DataCardValue9.Selected.Value see if it lets you add that to the end.
Also when the app runs, and you select that, x out and go view the variables in the view menu and see if it has a true or false value set.
Mellissa Perez
Feb 27, 2019Copper Contributor
Hi Chris. I am struggling. For the drop down, I have the OnSelect property as If(DataCardValue9.Selected,'Lebanon, UAE', Set(embassy, true)). So if Lebanon, UAE is chosen it will set the var embassy as true.
In the HTML text input box, it surrounded the text that I wanted to be hidden with the ""& If(embassy = true, "...(the hidden text), "") &"" but its not taking the code.
Could you possibly tell me what I did wrong? I haven't worked with var before.
Thanks again.
Feb 27, 2019
And I don't know if this is copy paste code but make sure you have quotes around the hidden text since you don't there, but guessing it's just a typo.