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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Submit the button only...
Power Apps
Answered

Submit the button only once and disable it

(0) ShareShare
ReportReport
Posted on by 1,710

Hello,

I have a SharePoint Form that I am customizing it using Power Apps forms.

In this form, I have a "Date of Rejoining after leave" Datacard that contains a button that will launch a flow.

What I want to achieve is the following:

After the user clicks and submits the button of the item, I want the display mode of this button to be disabled. This means even if he tried to "Edit the same form/item" and he has already submitted the button of the item, then the display mode of this button should remain disabled.

So I want to allow the user to submit only once for each item, and disable this button.

What's the best way to achieve the above scenario?

Can please someone provide an example and explains in detail?

Any help will be greatly appreciated.

 

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

    Set a Variable at the end of OnSelect of the Button:
    Set(DisableButton,true)

     

    Example: SunmitForm(FormName);Set(DisableButton,true)

     

    Then in the DisplayMode of the button put:
    If(DisableButton,DisplayMode.Disabled,DisplayMode.Edit)

     

    To enable the button Again, you can add the Variable to the Another Button:
    Set(DisableButton,false)

     

  • Verified answer
    Erica0214 Profile Picture
    on at

    @eka24 this is a good way. Just would like to add something.

     

    I am afraid that after saving and clicking edit to edit the same item second time, the variable DisableButton will be initiated and it is again able to see the button.

     

    It would be easier to control if adding a column (ex:submit_status) to the SharePoint list to save the property as Submitted or Draft. After clicking button changing the property to Submitted and If(item.submit_status="Submitted",Set(DisableButton,true),Set(DisableButton,false)).

  • eka24 Profile Picture
    20,923 on at

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard