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 / How to use If Statemen...
Power Apps
Unanswered

How to use If Statement for a text choise option in Share Point list?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have been trying to use an IF statement 

 

If LineItemStatue is "Closed" (which is a multiple choise option) then in the Permanent Solution I must get a specific statement, and I have been trying with the below, but its not helpng,

 

If(Line Item Status.Field = "Closed", "Permanent Solution is Mandate", "Once Line item closed please fill this column")

 

I get an error if I try this, "Sorry we couldn't edit the column. Please try again."

 

Please let me know where I'm going wrong.

 

Thank you!

 

Categories:
  • RobGas Profile Picture
    75 on at

    Hi, you have to reffer to the choices name for example i have choice selection called "Fruit" in the choice i have "apple", "banana", "orange" so it would have to be like this 

    If(Line Item Status.Field = Fruit.apple, Fruit.banana, Fruit.orange)

  • WarrenBelz Profile Picture
    156,748 Most Valuable Professional on at

    Hi @Anonymous ,

    Where are you using this code ? If it is the Default of a control in a Form, you would need

    If(
     "Closed" in ThisItem.LineItemStatus.Value, 
     "Permanent Solution is Mandate", 
     "Once Line item closed please fill this column"
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard