cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tomjoh92
Level: Powered On

Required field if a card is not blank

Hi!

Im making a timestamp app were the employees type in their time. 
And i want them to write what they have done to submit the form. 

I want a commentbox to be required if the dropdown for selected hours are not blank. Someone know?

Thanks

2 REPLIES 2
Super User
Super User

Re: Required field if a card is not blank

@Tomjoh92

 

From my understanding, you want the the text input(comment) box to be enabled only when the selected hours is not blank

 

You can set the DisplayMode property of the text input box to 

 

If(IsBlank(TimeDropwdown.Selected.Value),Disabled,Edit)

 

And if you want this to be a mandatory requirement for submitting the form, set the Displaymode property of the Button to 

 

If(IsBlank(TextInput.Text),Disabled,Edit)

 

Hope this helps


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Super User
Super User

Re: Required field if a card is not blank

Hi @Tomjoh92 I think I covered a few different techniques that would help you here in this video. 

 

PowerShell Conditional Formatting

 

If I am missing the mark let me know. Always looking for new ideas for additional videos.

 

Thanks

 

Shane

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 53 members 4,697 guests
Please welcome our newest community members: