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 i can disable all ...
Power Apps
Answered

How i can disable all the fields if status value will "Submitted"

(0) ShareShare
ReportReport
Posted on by 3,514

I have customized our sharepoint list using power app >> and inside the list we have a drop-down column named "Approval Status". now i want to disable all the fields (disable the whole powerapp form) in-case the "Approval Status" = "Submitted" is this possible? now i can do so for each field separately >> but i am asking if i can do it at the form level instead?

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @johnjohn123 ,

     

    I think you can use FormMode to control. For example:

    If(ThisItem.'Approval Status'.Value="Submitted",FormMode.View,FormMode.Edit)

    Hope this helps.

  • johnjohn123 Profile Picture
    3,514 on at

    @Anonymous  i can not find any property named "FormMode" .. there is only a property named "DefaultMode"..can you post a screen shot please?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @johnjohn123 ,

     

    You are correct. I did some test, it looks this formula doesn't work well, only in a moment it shows the mode as "View", but it comes to back to allow "Edit" again.

     

    I tried "Visible", it works well, but I don't think this is what you want because it shows nothing when the criteria is met; an alternative way might be setting up "Visible" property on the "Save" button, if the "Approval Status"="Submitted", the "Save" button is invisible. Not sure if this is OK for you.

     

    Sorry I didn't try the formula before I responded to you.

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @johnjohn123 ,

     

    I think your needs can be met. Based on the idea of @Anonymous , I want to add something.

    The point is to judge the value of the column when submitting.

    If the value is "Submitted", modify the DefaultMode property, otherwise do not modify.

     

    I assume:

    "Approval Status" is a choice column. It has two options, one is "Submitted" and the other is "Unsubmitted".

     

    I did a test for you:

    1\ This is my test list  'LIST 58'

    176.PNG

    2\ Add an edit form 'EditForm1' and set its DefaultMode property to:

    Thevar // This is a variable name, it will be created later

     

    3\ Add a button control and set its onselect property to:

    SubmitForm(EditForm1);If(EditForm1.LastSubmit.'Approval Status'.Value="Submitted",Set(Thevar,FormMode.View),Set(Thevar,FormMode.Edit))

     

    4\ The result is as follows:

    NNN.gif

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard