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 / How can I set the comb...
Power Apps
Answered

How can I set the combo boxes DefaultSelectedItem property to blank every time the form is loaded?

(0) ShareShare
ReportReport
Posted on by 114

Hi all,

I have an app with a few combo box which data source are from SharePoint choices columns.

On the form along with these combo boxes, I also have a submit button.

The below properties are what I have on my combo boxes and button controls..

First combo box:

Items: Choices([@Ballot].'Select Group')

Second combo box:

Items: (Choices([@Ballot].'Voter Name')

Third combo box:

Items: (Choices([@Ballot].'Score')

Button Submit:

OnSelect: 

SubmitForm(FormVoting);
NewForm(FormVoting);
Navigate(ScreenConfirmation);

 

Question:

1- How can I set my submit button control to be disabled until ALL combo boxes are filled/selected?

2- How can I setup a pop up box it the submit button is pressed without all combo boxes are filled?

 

Thank you all in advance.

 

 

Categories:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @davidvo68 ,

    1. You need to reset the form before you create a new instance:

    SubmitForm(FormVoting);
    ResetForm(FormVoting);
    NewForm(FormVoting);
    Navigate(ScreenConfirmation);

     2. Set the DisplayMode property of the submit button to something like:

    If(
     IsBlank(ComboBox1.Selected)||
     IsBlank(ComboBox2.Selected)||
     IsBlank(ComboBox3.Selected),
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

    3. You can setup a popup box composed from a label control (containing the error text) put in front of all other controls, and set it Visible property to a boolean context variable (like showPopUp). In this scenario, use the OnSelect property with a similar formula like the previous one:

    If(
     IsBlank(ComboBox1.Selected)||
     IsBlank(ComboBox2.Selected)||
     IsBlank(ComboBox3.Selected),
     UpdateContext({showPopUp:true}),
     SubmitForm(FormName)
    )

    Also, keep in mind that the user need to have a way out from the popUp so put a button or icon where the OnSelect property to be set to:

    UpdateContext({showPopUp:false})

    Hope it helps !

  • davidvo68 Profile Picture
    114 on at

    This worked great.

    Thank you for your help Gabibalaban.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard