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 / Error in the formula f...
Power Apps
Answered

Error in the formula for the button

(0) ShareShare
ReportReport
Posted on by 10

Here i have to use the assign button to change the status of the choice in a form which is connected to a sharepoint list.
but i am not able to do that.
see iff anyone can help with this

Capture.PNG
Categories:
  • eka24 Profile Picture
    20,925 on at

    Please can you explain further.

    Is it that whenever the Pen is clicked, the field in the form should change?
    If so then OnSelect of the Button/Pen put:
       Set(MyChoice,ThisItem.ChoiceColumn)

     

    Then in the Default of the Textbox that holds the assigned in the form, put:
      MyChoice

     

    Change ChoiceColumn to the actual name of the column.

    ------------
    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.

  • rishabhatia31 Profile Picture
    10 on at

    when we click on ASSIGN TO ME button 
    it is supposed to change the order status to ASSIGNED which is in a form

    the form takes the values from the sharepoint list

     

    i want to change the status directly in the sharepoint list if it can

  • rishabhatia31 Profile Picture
    10 on at

    we are not suppoed to have the textbox
    i just put it there  as i was doing something and forgot to remove befre sending the picture

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Have you tried with a formula that isn't working for you? 

     

    If not, can you try the following Patch? 

    Patch(SPList, CurrentRecord, {Status: LookUp(Choices(SPList.Status), Value = "Assigned")})

     

    Make the following changes:

    1. Replace SPList with your list name.

    2. CurrentRecord is the record you are displaying in your form, I am assuming its Gallery.Selected.

    3. I am assuming Status is the name of the Choice field, if not, change it

     

    Let me know if this works (I tested this out and it does, but if it doesn't, we might have to make some minor changes to make it work for you). 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • rishabhatia31 Profile Picture
    10 on at

    This is not working I tried. if you can suggest few changes?

  • Verified answer
    PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Can you tell me what error are you getting with the suggested formula? That will help resolve this quickly. 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

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 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard