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 / i wanted to vailidate ...
Power Apps
Answered

i wanted to vailidate gallery table column suppose colA is selected yes then column B should be mandatory how to achieve this ?

(0) ShareShare
ReportReport
Posted on by 127

i wanted to vailidate gallery table column suppose colA is selected yes then column B should be mandatory how to achieve this ?

Categories:
  • infini Profile Picture
    19 on at

    Hi,

    At the moment, there is no Required property of a control in PowerApps. There is Visible or DisplayMode which you can utilize.

    Supposed you have a checkbox, and based on the state of this checkbox, you show/hide a warning message to a particular label(s) or any control.

    infini_0-1679380229609.png

    In my sample image above, if CB1 is checked, the warning message for CB2 will show. The formula is applied to the Visible property of the warning message label of CB2.

     

    NOTE: this does not validate CB2 on form submit. You have to do CB2 value validation separately.

     

    Cheers.

  • Ali123 Profile Picture
    127 on at

    How i can validate cb2 suppose i have submit button and i dont want to enable it untill all mandatory columns filled

    ColA  ColB

    Yes     mandatory

    No     non mandatory

  • infini Profile Picture
    19 on at

    Supposed you want to enable the Save button only if the 3 checkbox are checked:

    infini_0-1679382463349.png

     

    Sample:

    infini_1-1679382580166.png

     

    In the formula applied, the Button button will only become active if all 3 checkbox are checked.

    The checkbox can be other type like field, dropdown, etc. Any thing that you can validate in the DisplayMode property of the Save button.

    You can use the same method to a different control at the same time.

     

    Cheers.

  • Ali123 Profile Picture
    127 on at

    No..below  is my case when colA is Yes i want ColB mandatory simple

    Ali123_0-1679383342470.png

     

  • infini Profile Picture
    19 on at

    You can't if you are relying on the change event of the dropdown controls of ColA. Like I mentioned in my first comment, there is no option to set a control as required at the moment.

     

    As an alternative, you can add a label control just below the text fields of ColB, then hide/show based on the value of the dropdown control in ColA. Please not that this is for UI only, does not validate ColB text field on form submit.

     

  • Verified answer
    Ali123 Profile Picture
    127 on at

    ok i got solution by filtering dataset, thanks

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard