Re: Simple Newbie Question about the Edit Form
So you can use the same form or you can use two forms either way is up to you. The way to use 2 forms is their property called FormMode into a variable/if statement that you then use to switch it to the proper mode that you need.
To submit a form to SP you use the SubmitForm() function and then pass in the form name. Here is some example code on how you can do this. I am going to assume that you are selecting an item from a gallery on "Screen1" and that you also have a New Item button on "Screen 1" as well.
// when the user clicks an item in the form we want to save it to a variable and send it to the form screen when we go
Gallery.OnSelect -> Navigate(FormScreen, ScreenTransition.None, {selectedItem: ThisItem})
// when the user wants to make a new item we want to send the same variable but make it blank this time
NewButton.OnSelect -> Navigate(FormScreen, ScreenTransition.None, {selectedItem: Blank()})
// Now for your FormName.FormMode you will want to decide which form type to show based on the above code
Form.FormMode -> If(IsBlank(selectedItem), FormMode.New, FormMode.Edit)
// Dont forget to tell the form which item to show when in edit mode!
Form.Item -> If(IsBlank(selectedItem), Blank(), selectedItem)
Hope this helps and makes sense for you! Ask any question you have!