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

Show hide Button based on contents

Looking for a way to hide button based on the contents of the form that I want to submit. I have few drop down datacards and when I try the following as Display Mode for the button:
If(IsBlank(DataCardValue1.Text)  IsBlank(DataCardValue2.Text) IsBlank(DataCardValue3.Text), DisplayMode.Disabled, DisplayMode.Edit)
Im getting an error that the mode is not supported for this data card. All datacards, except one are drop down menus. Any help will be highly appreciated.



 

5 REPLIES 5
Highlighted
Super User III
Super User III

Try

If(IsBlank(DataCardValue1.Text)&&  IsBlank(DataCardValue2.Text)&& DataCardValue3.Selected.Value="", DisplayMode.Disabled, DisplayMode.Edit)

 

Change  DataCardValue3 to the dropdown. If you still have issues, show the items property of the dropdown

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted

If I try the above again getting: data is not supported for the evaluation. All Im trying to do is avoid submitting the form without all fields filled up

Highlighted

I asked that you show the items property of the dropdown. Can you show a screenshot of the formula on the dropdown?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted

@eka24 I have the fields dropdown selection directly from SP. So the datacard value formula Im getting is: Choices([@adhoc].Building). Still trying to figure this 🙂

Highlighted

After I gave the formula;

If(IsBlank(DataCardValue1.Text)&&  IsBlank(DataCardValue2.Text)&& DataCardValue3.Selected.Value="", DisplayMode.Disabled, DisplayMode.Edit)

 

I have been asking of a screenshot of the formula if it doesn't work.

Do have any difficulty in showing a screenshot or a picture of the formula to help resolution?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (13,128)