Feb 26 2019 11:41 AM
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 some text that should only be present if a field is chosen. For example, you have to apply for a visa and depending on your destination, you have different processes that you need to follow. Choose Lebanon, you see the process to apply for a visa to Lebanon. If you choose Africa, you see the process to apply for a visa to Africa. So on and so on.
Thank you in advance!
Feb 26 2019 11:57 AM
You'll want to use variables here and plug in the text, and show that variable by wrapping it in an IF() function like so, with on / off checkbox1.value
Feb 26 2019 12:00 PM
Feb 27 2019 10:28 AM
Feb 27 2019 11:06 AM - edited Feb 27 2019 11:10 AM
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 11:19 AM
SolutionFeb 27 2019 11:20 AM
Feb 27 2019 11:43 AM - edited Feb 27 2019 11:50 AM
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 2019 11:48 AM
Feb 27 2019 11:54 AM
Feb 27 2019 11:19 AM
Solution