cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pxtavern
Helper I
Helper I

"This formula uses scope which is not presently supported for evaluation " Trying to make a button within a form only appear for items with a certain status

Hi all!

 

I am trying to make a button in a Gallery only be visible for certain items in SharePoint list. The list has a Choice column called "Status" and I only want the button to appear next to items that state "Sent for Manager Review" . 

 

The code is in the Visible property of the button:

If(ThisItem.Status.Value = "Sent for Manager Review", true,false)

 

The error is as in the title: This formula uses scope which is not presently supported for evaluation.

 

Any help is greatly appreciated  

 

1 ACCEPTED SOLUTION

Accepted Solutions
AmDev
Super User
Super User

Hi @Pxtavern 

 

Try using this slightly simplified expression in the visible property:

 

ThisItem.Status.Value = "Sent for Manager Review"

 

This might also remove that notification. Note, it is not an error, just a notification, which in most cases is harmless. Errors show up as red underlines in the formula bar and with a red x beside the control with the error.

 

Hope this helps

 

 

View solution in original post

5 REPLIES 5
abdellahgartoum
Frequent Visitor

hello Pxtavern ,

 

is the Choice column "Status" multiple choice or only one choice.

 

Kind Regards,

Abdellah GArtoumi
________________________________________________________________________

If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

hi @abdellahgartoum it is singular choice so it can only have one selection 

AmDev
Super User
Super User

Hi @Pxtavern 

 

Try using this slightly simplified expression in the visible property:

 

ThisItem.Status.Value = "Sent for Manager Review"

 

This might also remove that notification. Note, it is not an error, just a notification, which in most cases is harmless. Errors show up as red underlines in the formula bar and with a red x beside the control with the error.

 

Hope this helps

 

 

abdellahgartoum
Frequent Visitor

hello again Pxtavern,

 

try this tested solution change DataCardName by your the name of your datacard

If(DataCardName.Selected.Value = "Sent for Manager Review", true,false)

 

Kind Regards,

Abdellah GArtoumi
________________________________________________________________________

If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

Thank you @AmDev and @abdellahgartoum didnt realise it was actually working just got distracted by the notification thinking it was an error haha. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,952)