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)?
Not really sure why I used NewForm, it's been a while since I first built the app. I tried EditForm, but it didn't make a difference.
Don't know why the one form wasn't displaying. Made it into 2 forms (one view, one edit), and it's working. Not really a "solution", but it works.
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.
Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.
Your chance to join an engaging competition of Power Platform enthusiasts.