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 / Edit button, Add Botto...
Power Apps
Answered

Edit button, Add Botton and Save Button

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 Hi! I  have a Power App form that is connected to a SharePoint list, what I need to do is to make some kind of condition so that the 'Edit button' allows to edit the form only if the person wanting to edit is the same one registered in the SharePoint fields named: "SME" or "Responsible" or "Asigned To", same case for the Save Button.

And for the "Add Button" I want to deploy a blank form so that the user can entry the information and when clicking the 'Save button' it gets stored in the SharePoint list as well.

 

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

    Assuming the Textbox on your form for the field responsible is Textbox2, consider this formula on displaymode of the button;

    If(User().FullName=Textbox2.Text, DisplayMode.Edit,DisplayMode.View)

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

    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.

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you please share a bit more about your scenario and the layouts?

    Do you want to limit the users to edit on the Gallery screen and save on the detail form screen?

    Or users could turn to detail screen without limitation but only users’ names meet the three field’s content could see or click the Edit Button?

    And what are the field TYPE of the three column you mentioned in the post, Person or Text?

     

    I assume they are Person type fields.

    First of all, on the Gallery screen, set screen’s OnVisible to

     

    Set(varUser, User().FullName)

     

    Then if the Edit Button is on the Gallery screen, like the right arrow of the Item of below screenshot, set the Edit Button’s Visible to

     

    If(varUser = ThisItem.SME.DisplayName || varUser= ThisItem.Responsible.DisplayName || varUser= ThisItem. ‘Asigned To’.DisplayName)

     

    25.jpg

    On the Edit form screen, set Save Button’s DisplayMode to:

     

    If(varUser= DataCardValue1.Selected.DisplayName || varUser= DataCardValue2.Selected. DisplayName || varUser= DataCardValue3.Selected. DisplayName, DisplayMode.Edit, DisplayMode.View)

     

    26.jpg

    If you want to limit users editing after they enter the details screen, so the Edit Button is on the Details Screen, then also set Edit Button’s DisplayMode to the above formula.

     

     

     

    Best regards,
    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution  to help the other members find it more.

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard