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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Loading a specific scr...
Power Apps
Unanswered

Loading a specific screen on edit in SharePoint form

(0) ShareShare
ReportReport
Posted on by 46

I have multiple screens in my edit SharePoint list form customized using powerups.

There is a field called next screen in the list which is updated by various buttons depending on the stage they are. 

I put a code in the SharePoint Integration Edit section, below is the code.

    

Set(

    SharePointFormMode,

    "EditForm"

);

If(

    SharePointIntegration.Selected.nextscreen = "Internal",

    Set(

        internal,

        true

    ),

    SharePointIntegration.Selected.nextscreen = "cor",

    Set(

        cor,

        true

    ),

    Set(

        none,

        true

    )

);

If(

    internal,

    Navigate(

        Internal_Form,

        ScreenTransition.Cover

    );

    EditForm(EditView_1),

    cor,

    Navigate(

        Cor_Form,

        ScreenTransition.Cover

    );

    EditForm(EditView_2),

    EditForm(EditView);

   

);

Set(

    varformdata,

    Defaults('Request')

);

 

The problem is my form always loads in COR screen even the nextscreen value is not cor.

What is wrong with the code?

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @alearner090 Try this code,

    If(Dropdown1.Selected.Value = "All", PAN2, Filter(PAN2, 'Pay Group' = Dropdown1.Selected.Value, 'Effective Date' >= DatePicker1.SelectedDate && 'Effective Date' <= DatePicker2.SelectedDate))
    Set(SharePointFormMode,"EditForm");
    Switch(SharePointIntegration.Selected.nextscreen,
    	"Internal",
     Navigate(Internal_Form,ScreenTransition.Cover);
     EditForm(EditView_1),
    	"cor",
     Navigate(Cor_Form,ScreenTransition.Cover);
     EditForm(EditView_2),
     EditForm(EditView);
    );
    Set(varformdata,Defaults('Request'));
  • alearner090 Profile Picture
    46 on at

    did not work, This formulae SharePointIntegration.Selected.nextscreen is causing the problem.

    There is value in the next screen field, I can see that in the form as well.

    not sure why it is causing the problem, looks like if I change this to literal text then it works. 

    not sure what is going on. 

  • WarrenBelz Profile Picture
    154,496 Most Valuable Professional on at

    Hi @alearner090 ,

    If you are getting a value from the nextscreen field, this should work

    Set(
     SharePointFormMode,
     "EditForm"
    );
    Set(
     varScreen,
     SharePointIntegration.Selected.nextscreen
    );
    Switch(
     varScreen,
     "Internal",
     Navigate(
     Internal_Form,
     ScreenTransition.Cover
     );
     EditForm(EditView_1),
     "cor"
     Navigate(
     Cor_Form,
     ScreenTransition.Cover
     );
     EditForm(EditView_2),
     EditForm(EditView)
    );
    Set(
     varformdata,
     Defaults('Request')
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • alearner090 Profile Picture
    46 on at

    I generate an edit link like this 

    https://mysite/Lists/Action%20R/EditForm.aspx?ID="& currid

    it is sent to users in an email, but when they click on this link, it does open the form in edit more but not the same screen written in the SharePoint Integration Mode. 

    however, if you open the item in display and click the editall link above then it works 

    alearner090_0-1621699102230.png

    I was trying to send an email with an edit link that will take users to the particular screen rather than the default edit. doesn't seem like it works.

  • WarrenBelz Profile Picture
    154,496 Most Valuable Professional on at

    @alearner090 ,

    Deep linking does not work as you expect in SharePoint integrated forms (I do not believe it was designed to work at all), so the result you are getting is not surprising. You did not say you were doing this in your original post, so I assumed you were simply opening it from SharePoint.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    154,496 Most Valuable Professional on at

    @alearner090 ,

    A further thought. Try running the code at App  OnStart as OnEdit is not triggered unless run directly form SharePoint

  • WarrenBelz Profile Picture
    154,496 Most Valuable Professional on at

    Hi @alearner090 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard