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 / Editing an already sub...
Power Apps
Answered

Editing an already submitted form

(0) ShareShare
ReportReport
Posted on by 1,625

Hi everyone,

 

After a user submits a form, if they have made a mistake they can go to the form and click the edit button, on the edit buttons OnSelect I have this:

 

 

Set(varModeEdit,!varModeEdit)

 

 

This works fine, but I have set it so it can't be edited if the form has passed the first approval.

 This too works fine.

 

But I've noticed a backdoor in my code, if a user goes to another form they have submitted and clicks the edit button and then goes back to the gallery and clicks the already approved form, this already approved form appears in edit mode... and I want the variable to reset when a user selects an item from the gallery, or when they navigate to my SucessScreen

 

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,923 on at

    If your form has a a datacaradvalue with the Approval, you can use the displaymode of the form.

    In the Default mode put;

    If(datacaradvalue4="Approved",FormMode.View,FormMode.Edit)

     

    This way even if the use selects the Gallery, it cannot be edited.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Lefty Profile Picture
    1,625 on at

    @eka24  Aha, that's a good shout and something I can use for sure.
    I normally have a notify message appear on screen when a user selects the button and the form is already approved.

     

    I've just tested this too, on my GalleryScreen OnVisible i set it to Set(varModeEdit, false)

    This seems to work, when i navigate from the gallery, do you see any flaws with this approach? 

  • eka24 Profile Picture
    20,923 on at

    If it works fine but how does this disable the edit of the form when Approved is selected in the Gallery

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • tutu2 Profile Picture
    30 on at

    I just want to make the form read only after i click the submit button. i dont have a field for approved or not.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard