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

"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
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

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.

<
Users online (4,302)