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". 🙂