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

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

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

Shanescows
Super User
Super User

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,263)