Hello,
I am new to Power Apps and have created a Purchase Request (PR) form that includes a gallery for each line item of the PR, by following some instructional videos by Shane Young.
The datasource for the gallery is a SharePoint list.
Everything is working and I'm in the process tweaking the form so some buttons are only visible when I want them to be.
To start, I have added 'ShowSaveButtons: true' into the PRCollection.
NewForm(CreateForm);ClearCollect(PRCollection, {LineItem: "", ServiceProductDescription: "", WebURL: "", Qty: "", UOM: "", Price: 0, Subtotal: 0, ShowSaveButtons: true});Navigate(NewItem,ScreenTransition.Cover)
My GalleryPRCollection includes a SaveIcon and DeleteIcon.
Visible property for SaveIcon (note I tried to enter ShowSaveButtons but only ThisItem.ShowSaveButtons was valid))
ThisItem.ShowSaveButtons
Visible property for DeleteIcon:
SaveIcon.Visible
Then for each Input field in the gallery I try to enter the following formula but it comes up with the error: The function 'If' has some invalid arguments.
If(ThisItem.ShowSaveButtons, DisplayMode.Edit, View)
I'm not sure what I'm doing wrong and hope someone has some insight.