When clicking the electrical add icon I want the mechanical portion to disappear and other fields to appear to enter. How do I do this?
Hi @EMA03356
I assume you are using a form and added custom DataCards to show the different section headings.
What I have done, Add all the inputs you want into your form and arrange them in the order you like separated by the headings.
On the Onselect property of the Add icon for Electrical:
UpdateContext({showElectrical: true, showMachanical: false});
Do the same for Machanical but change to the correct values. (Machanical - true, Electrical - false)
On the DataCard for each input control, on the Visible property add in either showElectrical or showMachanical according to what header it comes under.
Please tick Accept as solution if the answer is useful.
Thanks,
Hello again, I am still unable to get this to work. Thank you!
Hello I tried what you put above and updated the "electrical" with the icon name and entered into the visible property of what I wanted to hide. I'm getting an error.
Hi,
It looks like your implementing some sort of tabs, I'm correct ?
To make it works, add a UpdateContext formula on the Add icon "OnSelect" property to save which element is on focus
UpdateContext({_ctxVar : "Electrical"})
Then use this context variable on the OnVisible property of what needs to be hidden :
Element.OnVisible = !IsBlank(_ctxVar) And _ctxVar <> "Electrical"
And then, if you need more, apply the same logic to other icons and vary the _ctxVar value
Regards,
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional