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 / How to Know the Form C...
Power Apps
Unanswered

How to Know the Form Control Load completed or Load form Completed.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I need a solution for my application.

 

In my Application, I have a List, It's has some fields along with a Status Field, which is a Choice field  and Type Drop down(The Drop down have option values : "New" , "Inprogress", "Failed", "End"), with Single selection.

 

My Requirement : I want the form should be open in View mode, when any Item in the List Status is "End". 

 

Below are the Steps to follow to create the scenario

 

Steps: 

Step 1 : Create a List (Name Tasks). 

Step 2 : Create a Status Field (Contain values : "New" , "Inprogress", "Failed", "End"). It is a Choice Field and Display Choice is a Drop down with Single Selection.

Step 3 : Now Open the Tasks List. and Click PowerApps -> Customize forms. 

Step 4 : Add a Button. Button1.OnSelect = SubmitForm(SharePointForm1). Button1.Title : Submit

Step 5 : Publish To SharePoint

Step 6 : Create New Item with a Status "End"

Step 7 : Save the Item using the Button ( Submit)

Step 8 : Now select the Item and Click Edit

Step 9 : The form opening with Edit Mode. But I need the Form will open in View mode. Because, the Item Status is "End". User not able to Update any Field of the Item.

Capture1.PNG
Categories:
I have the same question (0)
  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    Hi @Anonymous

     

    One way to do this is to configure the OnEdit property of the SharePointIntegration object so that it opens your form in View mode when the status value is "End". To do this, set the OnEdit property to the following formula:

     

    If(SharePointIntegration.Selected.Status.Value = "End", 
     ViewForm(SharePointForm1),
     EditForm(SharePointForm1)
    )

    SharePointIntegration.JPG

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi timl,

     

    Thank you for your reply.

     

    It's not working.

    I think, OnEdit event will occure before the set up of the List Item value in SharePointForm1. So, It wiil not taken me to View mode.

     

    Consider below example for understanding : 

     

    Item ID       Title          Status  

    1                 Item 1       Start

    2                 Item 2       End

    3                 Item 3       In-Progress

    4                 Item 4       End

    ....

    ....

    ...

    etc.

     

    Explanation :

    If user select item 2 and do edit. It will open the form in View mode [i.e. VewForm(SharePointForm1)] and same for item 4.

    Apart form that, any item (1,3, etc. ) will open in Edit mod [i.e. EditForm(SharePointForm1)].

    Means any item, which if the Status is "End", will open in View mode.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard