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

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:
I have the same question (0)
  • 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
    153,034 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard