web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / When I click the add i...
Power Apps
Unanswered

When I click the add icon, I want something to disappear.

(0) ShareShare
ReportReport
Posted on by 221

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? 

 

EMA03356_0-1700065609622.png

 

Categories:
I have the same question (0)
  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    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,

  • EMA03356 Profile Picture
    221 on at

    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. 

  • EMA03356 Profile Picture
    221 on at

    Hello again, I am still unable to get this to work. Thank you!

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    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,

    @AARON_C 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard