Announcements
I have a screen with two gallery and a form and two buttons. One button when click it create an add new form and other button change display to edit mode.
I was able to make the cascade galley works and the form can display a record selected by second galley. I would like to implement the onSelect edit button to change the display form to edit form. And when I click add new it change to edit new form. Is that possible I would like to stay in the same screen ?
@skong ,
You simply need to choose between
EditForm(YourFormName)
for Edit Mode and
NewForm(YourFormName)
for New Mode and
ViewForm(YourFormName)
to go back to read-only.
Is this what you are meaning?
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
The FormViewer1 is a display form. When I changed the onSelect to the add button to NewForm(FormViewer1) it complains I have an invalid arguments and on the edit button to EditForm(FormViewer1) I got the same error message.
@skong
If you have added a new Display Form, this will not work (you cannot "convert" it) - you will need to replace it with a new form (Edit)
If I replace the form to new form(edit) how can I change to display mode with a click button ?
As per my previous post
I change the form to edit form. When I select an item to gallery2 it opened in edit mode with selected item filled in the form. When I click the add button it change the form to new form by resetting the form which is good. But when I go back to gallery2 select another item the form no longer filled with selected item. Do you know why ? The item property of the form is set as gallery2.selected.
Change the Item to
LookUp( YourListName, ID=Gallery2.Selected.ID )
I change item to your code doesn't work. I end up on the select button on gallery2 add this Select(Parent); EditForm(Form3); I will accept your suggestion as solution. Thank you very much for your help.
Select(Parent) is inferred when you select an item in a gallery (it becomes the GalleryName.Selected), so you should not need to do it once you select an item (I do not have it on probably over 100 galleries). You do however need to put the EditForm(Form3) to instigate the edit.
Thanks again. By the way I change back to gallery2.selected the code still work.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 325 Most Valuable Professional
11manish 165
MS.Ragavendar 88 Super User 2026 Season 1