cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
G99
Post Prodigy
Post Prodigy

Click Icon - Show/Hide 3 fields

HI,

I'm trying to by default hide 3 fields on my form, when a downward facing arrow (icon) is clicked i'd like to show these 3 fields and when clicked again hide them, how do I set this up please?

I presumed i need to use the icons OnSelect and use something like this:

UpdateContext({ but it won't find the fields i'm looking for when I do this, any ideas?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User
Super User

You are right, you have to use UpdateContext(HideField:!HideField) on the OnSelect of the icon.
Then on each Datacard you want to hide put: HideField
on the visible property.

View solution in original post

6 REPLIES 6
eka24
Super User
Super User

You are right, you have to use UpdateContext(HideField:!HideField) on the OnSelect of the icon.
Then on each Datacard you want to hide put: HideField
on the visible property.
G99
Post Prodigy
Post Prodigy

Hi @eka24 

 

Thanks for your response, On the OnSelect property of the icon i have put this and i get a :

 

UpdateContext(Address_DataCard1_1:!Address_DataCard1_1)

But under Address_DataCard1_1 i get a red line with the following error:

The first argument of the 'UpdateContext' should be a record

please follow exactly what I did. I didn't put the datacard in the update context.
Select the icon and put the updatecontext forumla on the OnSelect.
After that, select every datacard you want to hide then on the visible property of that datacard, put HideField as it is in the updateContext formula.

When you click the icon, it will either show or hide the datacard
G99
Post Prodigy
Post Prodigy

Hi @eka24 

I tried that but HideField came up with an error "Name isn't valid. The identifier isn't recognized"

 

Please look at these pictures. I hope it will make it clear

icon.JPG

 

Hidefield.JPG

G99
Post Prodigy
Post Prodigy

@eka24 

your first response was missing the curly brackets, Thank you for your help

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,602)