web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Making field mandatory...
Power Apps
Answered

Making field mandatory only if previous dropdown used

(0) ShareShare
ReportReport
Posted on by 29

Hi All,

 

I have an issue that I need help with and so far I have not been able to find an answer for.  I am having an issue with users not choosing the months which then gives the price of the accessory. I would normally just make this field mandatory so they can't move onto the next screen however, accessories is only part of this app so isn't needed everytime this app is used.

 

How can I make the user not be able to move onto the next screen if an accessory has been selected but they have not selected a month option to give a price, but if an accessory has not been selected they can move onto the next screen?

 

harleycoates_0-1682347302470.png

 

Categories:
I have the same question (0)
  • Verified answer
    mmollet Profile Picture
    3,187 on at

    Make Price show red border when accessory is not blank but month is blank:

    If(!IsBlank(AccessoryDropdownRow1) And IsBlank(MonthDropdownRow1), Color.Red, Color.Black)

    Now on your button's DisplayMode:

    If(Price1.BorderColor = Color.Red Or

       Price2.BorderColor = Color.Red Or

       Price3.BorderColor = Color.Red etc..,

    DisplayMode.Disabled,

    DisplayMode.Edit

    )

     

    User will have to fix all red border issues to continue. Can do this with whatever boxes you wish. 

     

  • harleycoates Profile Picture
    29 on at

    Amazing thank you!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard