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 / submit form validation...
Power Apps
Answered

submit form validation datacard is not empty

(1) ShareShare
ReportReport
Posted on by 215

hi 

i have one check box and one combo box .

what i want to achieve is if i checked the check box then combo box shouldn't be empty . my form only submit the form if check box is checked then combo box should be filled . 

 

if check box is not checked . form no need to validate 

 

please help me 

Categories:
  • Verified answer
    AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    So are you saying that you want the button to be disabled if the checkbox is checked and the combobox is not filled an enabled if the checkbox is not checked? 

     

    if so you add a button and then in the displaymode for the button you add:

    If(
     Checkbox1.Value && !IsBlank(ComboBox1.Selected),
     DisplayMode.Edit,
     !Checkbox1.Value,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

    Make sure to change Checkbox1 and ComboBox1 to the name of your components i made them red everywhere they are:
    If(
    Checkbox1.Value && !IsBlank(ComboBox1.Selected),
    DisplayMode.Edit,
    !Checkbox1.Value,
    DisplayMode.Edit,
    DisplayMode.Disabled
    )

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard