I have an approval app where a user clicks on an Approve button. When they do, it runs NewForm(Form1), and navigates to another page where the form is supposed to display. It doesn't display/ is empty. The defaultmode is set to Edit, the Items is set to Gallery1.selected, and the datasource is set to Requests. All correct. I know I'm missing something, but just can't recall what it is I'm doing wrong. Please help me jog my memory.
If you using NewForm(Form1) that means the default mode isn't being used and the form mode is new. A form in new mode doesn't use the item property. Why are you using NewForm(Form1) instead of EditForm(Form1)?
Hi @lumberjacklurch ,
If you set the form's mode to NewForm, the form will display empty value, which is used to create a new record.
If you set the form's mode to EditForm or ViewForm, you need to set the form's Item to one spefic record, which is used to edit/view an existing record. In this situation, if you do not set the Item property, the form will display "No item to display".
So, you need to firstly decide you want to do what with the form. To edit?To create a new one? To view a record?
And then set the right mode based on your demands.
Here's a doc about form's mode for your reference:
Thank you for the reply. I've abandoned using this particular form. I don't know why it wasn't working. Maybe because it had view-only and edit elements in the same form (although that shouldn't be a problem). I've split it into 2 forms, one for the view-only elements, and one for the editable elements. Seems to be working better now.
So, apparently, using two forms isn't a good strategy. It makes updating things much more complicated. So, I'm back to the one form. Still don't understand why it isn't becoming visible. All elements/datacards of the form have their Visible property set to Partent.Visible. I set the form's Visible property to True, but it still won't show up.
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand