cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Make a field required based on another field value

Hi,

 

I want to make attachments field in the form as mandatory based on the previous dropdown selection as Yes or No. If it's a Yes then the attachments needs to be added. Is there a way I can setup a condition for this ? Also can do it like a message pop in case it's a yes and the user directly clicks on submit button ?

1 REPLY 1
JR-BejeweledOne
Super User
Super User

You can't actually make a field required.   What you can do is to prevent further action from being taken if the field doesn't have anything in it.

 

You can add a 5 - pointed star icon, color it red and set it's visible property based on the attachment field being blank and on your submit you can make the submit button disabled if the attachment field is blank.

 

Here is an article that has a section talking about 'Pop-ups'   https://powerusers.microsoft.com/t5/News-Announcements/You-can-do-Magic-In-Power-Apps/ba-p/831309



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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,963)