web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / New, View, Edit versio...
Power Apps
Answered

New, View, Edit versions always loading in New Mode, defaults are set correct though.

(0) ShareShare
ReportReport
Posted on by 12

Hi All

 

I am trying to work out why my form in sharepoint is loading as NEW mode when viewing, and also editing.

I have 3 forms for each, view, new, edit.  I also set a textbox to show what mode is currently running on the forms.

 

 

"Form Mode:" & FormView.Mode

 

 

This is working well, and shows all forms no matter what mode, are running as 1 - New Mode.

I have ensured on each form individually, the DefaultMode = appropriate FormMode.View, FormMode.New, FormMode.Edit etc.

I have set my SharePointIntegration properties as follows:

OnNew

 

 

Set(SharePointFormMode, "CreateForm"); NewForm(FormNew); Navigate(ScreenNew, ScreenTransition.None)

 

 

On Edit

 

 

Set(SharePointFormMode, "EditForm"); NewForm(FormEdit); Navigate(ScreenEdit, ScreenTransition.None)

 

 

On View

 

 

Set(SharePointFormMode, "ViewForm"); NewForm(FormView); Navigate(ScreenView, ScreenTransition.None)

 

 

 

No matter what I have done, it still loads in edit every single time.  Is there some other setting or code I am missing?

 

Thanks

BA

 

Categories:
I have the same question (0)
  • Verified answer
    Pablo Roldan Profile Picture
    316 on at

    Hi, You are using three diferents forms, and notice you are using

    NewForm

    in each of them.

    So create a single form and use this commands.

     

     

    //MyForm is who is my form is called use those commands
    EditForm(MyForm)
    ViewForm(MyForm)
    NewForm(Myform)
    
    //if you want to have 3 diferents forms then
    EditForm(FormEdit)
    ViewForm(FormView)
    NewForm(FormNew)

     

     

    regards

  • B_Austin Profile Picture
    12 on at

    Thank you Pablo....silly mistake I didnt even notice that! thank you

  • Verified answer
    rsaikrishna Profile Picture
    3,703 on at

    @B_Austin 

     

    Also, I recommend using ResetForm(<FormName>) before calling NewForm( )/EditForm( )/ViewForm( ).

     

    I highly recommend using one single form for all kinds of views - New, Edit and View. This reduces the maintenance of your screens.

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

     

     

  • Pablo Roldan Profile Picture
    316 on at

    🤗

     

    if the response was helpful please consider mark it as answer.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard