cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lym
Frequent Visitor

Form - default mode: new - no item to display

Hi All,

 

I have a canvass app that requires user to add attachment when creating a SharePoint list item.

I have a screen (screen_newform) that is basically for creating the list item only. The screen has dropdowns/textinput and for each dropdown/textinput, there is one assigned variable to it. Basically onChange of the dropdown/textinput, it updates the variable assigned to it ex dropdown1 = variable1.


I also have Edit Form on the same screen and its default mode is set to New. Whatever the value of the variable, it will update the field on this form. All fields on this form are hidden except for Attachments control which the user use when attaching files. I also have a button that submits the form so the list item is created in sharepoint and code to navigate to main form or dashboard.

The issue is when I create a list item and navigate to the screen_newform again to create another list item, the form is displaying "no item to display". I am expecting to see the attachment control here so I can create a new list item.

Thanks in advanced.

before.pngafter.png

 

 

Edit: Setting it to NewForm(screen_newform) fixes this issue. Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @Lym ,

Firstly, let me explain why this problem appears:

an edit form has there modes: New, Edit and View.

If the form's mode is New, no need to set the form's Item.

If the form's mode is Edit or View, you need to set the form's Item. Or else, the form will display "No item to display".

Please notice that: no matter what the form's defaultmode is, after you submit the form, the form's mode will change back to Edit.

So in your issue, after you submit the new form, the form's mode change to edit. Since you did not set the form's Item, so it display as "No item to display".

 

The solution:
When you navigate to the new form screen, set the forms' mode to New.

set the button's OnSelect: (which is used to navigate to the screen_newform again to create another list item)

Navigate(Screenname);NewForm(Form1);NewForm(Form2);....
//NewForm is used to change the form's mode to New, no matter what the form's defaultmode is

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

Hi @Lym ,

Firstly, let me explain why this problem appears:

an edit form has there modes: New, Edit and View.

If the form's mode is New, no need to set the form's Item.

If the form's mode is Edit or View, you need to set the form's Item. Or else, the form will display "No item to display".

Please notice that: no matter what the form's defaultmode is, after you submit the form, the form's mode will change back to Edit.

So in your issue, after you submit the new form, the form's mode change to edit. Since you did not set the form's Item, so it display as "No item to display".

 

The solution:
When you navigate to the new form screen, set the forms' mode to New.

set the button's OnSelect: (which is used to navigate to the screen_newform again to create another list item)

Navigate(Screenname);NewForm(Form1);NewForm(Form2);....
//NewForm is used to change the form's mode to New, no matter what the form's defaultmode is

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,094)