cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SectorOMEGA
Helper III
Helper III

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
eka24
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.

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

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.

@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 🙂

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (38,325)