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 / Editable Form Error
Power Apps
Unanswered

Editable Form Error

(0) ShareShare
ReportReport
Posted on by 4

Hello All,

 

So I am working on an application that has a form that is editable through a toggle switch. When the toggle switch is set to true, it makes my form editable but when its set to false, it makes my form accessible only in view mode. The form reads from a sharepoint list. However, when I first launch the powerapp, the toggle switch will default to off and the form is still editable. This only occurs when I first launch the app. If I toggle the switch on and off, it goes away and I don't run into that error again. Any advice on how to fix this error?

Categories:
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    This can be done in 2 ways
    First one is quite simple - 
    Set FormMode property of Form to below formula- 
    If(Toggle1.Value, FormMode.Edit, FormMode.View)
    Second one is to use a variable to handle form's mode. OnAppStart or on visible of screen you can use the below formula -
    Set(varFormMode, "View")
    The formula that will go with toggle onChange -> If(Self.Value, Set(varFormMode, "Edit"), Set(varFormMode,"View"))
    Default value of toggle will be false as you want the form to be view mode
    In FormMode property of Form you can use - If(varFormMode="Edit", FormMode.Edit, FormMode.View)

  • fbuc94 Profile Picture
    4 on at

    Would the first solution be placed in the Item section? Sorry, fairly new to PowerApps

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    The first one can only be placed in Form's FormMode property as we are setting form mode in it. 

  • fbuc94 Profile Picture
    4 on at

    So I gave this a try and am still having issues. The form is linked to an icon and when I press the icon for the first time, thats where the issue arises

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard