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 Apps
Answered

GALLERY AND FORM

(0) ShareShare
ReportReport
Posted on by
Good afternoon from Spain. I have a problem with galleries and forms. I have a gallery and a form that modifies the selected element in the gallery. The problem is that since there is always an item selected from the gallery, the user can complete an order incorrectly. I need the user to have to select an item. Is it possible to start the gallery without any element selected by default?imagengaleria.PNG
Categories:
  • Verified answer
    nickellis74 Profile Picture
    432 Moderator on at

    Hello @PedroGarcia . I've had this problem in the past. I solved it as follows:

     

    Make the Gallery.OnSelect

    UpdateContext({activeRecord:Self.Selected})

    Then make the default record in the form

    Self.Selected

    I would suggest also in the Page.OnVisible

    UpdateContext({activeRecord:Blank()})

    just so that if they navigate away and come back they have to choose again.

    I would also make the Form.Visible property

    !(IsBlank(activeRecord))

    so that the form only shows when there is actually a selected record to work with.

    If you want to be really thorough you could put a label over the form with the text "Please select a record" (or a suitable Spanish equivalent!) and set the Visible property of that

    IsBlank(activeRecord)

    With all of the above, they'll get a notice saying "Please select a record" when they first enter the page, the form will appear with the correct record when they click on a record, and it will reset if they leave the page and come back.

     

    Hopefully this solves things. If so, please click "Accept as Solution". 🙂

     

  • PedroGarcia Profile Picture
    on at

    thanks a lot. I'm gonna try it later. I'll answer you when its done. i'm very busy now with other things

     

    Thanks again

  • PedroGarcia Profile Picture
    on at
    Thank you very much, the idea of ​​creating a variable (in my case global) that I declare blank when accessing this screen and Onselect sets it to true helped me. The form is seen if the variable is not blank. When returning to the initial screen the button blanks the variable again. Thank you so much
  • PedroGarcia Profile Picture
    on at

    Excuse me. Translator does'nt work correctly.  I meant that I USED THE IDEA OF CREATING......

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard