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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,221)