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.
Your 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.
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
Woohoo I was able to get the text to hide. Half the battle :-D. I checked on the var and it shows as "No Value'.
Here is the OnSelect property for the field not the custom card = If(DataCardValue9.Selected.Value = "Beirut, Lebanon", Set(embassy, true), false).
- Feb 27, 2019If they text is working then it's probably fine. You need to put logic in so when you select that value, then change it to something else the variable get's cleared or changed to something else.
So on the If(DataCardValue9.Selected,'Lebanon, UAE', Set(embassy, true)) need to add an else in there.
If(DataCardValue9.Selected,'Lebanon, UAE', Set(embassy, true),Set(embassy,false)) etc. Don't know how this is triggering, but something to consider.- Mellissa PerezFeb 27, 2019Copper ContributorIt worked! *sigh* THANK YOU FOR ALL OF YOUR HELP! It is just too cool.
Before I read your last response I continued to mess with the formula and came up with:
If(DataCardValue9.Selected.Value = "Beirut, Lebanon", Set(embassy, true), false) and the variable finally read as true.
This was great. Thank you thank you thank you!