cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Perrault
Frequent Visitor

Disable Button if Sharepoint List Field Says Yes

Hello,

I am looking to find a way to have a button in my PowerApp disable if a field in Sharepoint says "Yes". Does anyone know how to do this?

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @Perrault,

Have you solved your problem?

Do you want to disable the button in the Power Apps based on a specific fields value?

Could you please tell me that the column type of the field, is it a Yes/No type or a Text type?

 

Actually, how to set the DisplayMode property of the button depends on what the column type is.

As @anibra mentioned that if the column type is a Yes/No column, you could try the formula provided.

 

If the column type is a Choice or a Text, please modify as below:

If(ThisItem.Column.Value= "Yes", DisplayMode.Disabled, DisplayMode.Edit) // Assume it is a Choice type
If(ThisItem.Column= "Yes", DisplayMode.Disabled, DisplayMode.Edit) // Assume it is a Text type

 

Best Regards,
Qi

View solution in original post

2 REPLIES 2
anibra
Resolver I
Resolver I

Hi @Perrault ,

in the DisplayMode property of the button use the following: If(ThisItem.YesNoCol = true, DisplayMode.Disabled, DisplayMode.Edit) 

v-qiaqi-msft
Community Support
Community Support

Hi @Perrault,

Have you solved your problem?

Do you want to disable the button in the Power Apps based on a specific fields value?

Could you please tell me that the column type of the field, is it a Yes/No type or a Text type?

 

Actually, how to set the DisplayMode property of the button depends on what the column type is.

As @anibra mentioned that if the column type is a Yes/No column, you could try the formula provided.

 

If the column type is a Choice or a Text, please modify as below:

If(ThisItem.Column.Value= "Yes", DisplayMode.Disabled, DisplayMode.Edit) // Assume it is a Choice type
If(ThisItem.Column= "Yes", DisplayMode.Disabled, DisplayMode.Edit) // Assume it is a Text type

 

Best Regards,
Qi

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,169)