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 / Selective horizonal ga...
Power Apps
Answered

Selective horizonal gallery buttons and the relevant edit forms

(0) ShareShare
ReportReport
Posted on by 186

I have created a powerapps model driven form and I have 2 buttons in the horizontal gallery. When I click the first botton the first edit  displays and when I click on the second button the second edit form displays. I have attached the screenshot. 

 

I need a radio button on the top (above the horizontal gallery) called selectOption. If Selectoption is Employer it needs to select tabs 1,2,3 and 4. If  SelectOption is Salary then it needs to display buttons 2, 5 and 6.  

 I have attached a screenshot

Categories:
  • dataverse Profile Picture
    186 on at

    I used to navigateto property, so I have updated my question here.

    I have added a on off field in the top of my screen.  When the choice is on , I need to display button2 and button 3 and its respective screens which is screen2 and screen3. (just a note that when I click on button 2, screen2 appears using navigate(screen2).

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @dataverse 

    You can follow this post. hopefully, you will get an idea of what to do.

    Also, feel free to ask if you have any confusion.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Powerapps-horizontal-gallery-button/m-p/1816763/highlight/true#M460405 

  • dataverse Profile Picture
    186 on at

    I have attached the screenshot. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    In button2 visible property

     

    button2Visible

     

    In button3 visible property

     

    button3Visible

     

    In the toggle button onCheck property 

     

    UpdateContex({button2Visible: true}); UpdateContex({button3Visible: true})

     

     

    Hope it solved your problem

     

  • dataverse Profile Picture
    186 on at

    --"I have added a on off field in the top of my screen.  When the choice is on , I need to display button2 and ---------button 3 and its respective screens which is screen2 and screen3. (just a note that when I click on button 2, --------screen2 appears using navigate(screen2)."

    The above hides some buttons and shows some buttons. So there is a space(2 or 3 button spacing) between 2 buttons, since some of the  buttons are hidden. Please let me know how to remove this spacing and line up the buttons with little spacing.

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    In that case, you have to change the x and y positions of the button.

    When the toggle is on, Button 1 and Button 3 are visible but Button 2 is invisible.

    Now, for Button 3, change the X position with the following code

    If(!Button2.Visible, 236, 456)

    Here, 456 and 236 is the original position of Button 3 and Button 2 respectively. so if button 2 is  not visible Button 3 will the Button 2's position.

    Do the same thing for other buttons.

     

    Default.png

     

    Default2.png

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard