cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Collector
Kudo Collector

Powerapps - check value of combo-box (selected items) in the formiula for a button(Visible property)

We have a PowerApps form with several fields that must be completed before the form can be submitted to the Sharepoint List.

 

We can't make them required or mandatory on the Content-Type and List because we want the users to be able tosave their data, and come back to it to edit it before Submitting...

 

So we need to disable/hide the Submit button until these fields are completed by the user.

 

In our Submit Button control we are using a formula to control the Visibility property of the button, or it's container which is the footer.

 

So we have tried this kind of thing:

 

If(
    And(
        TitleField.Text <> "",DescOfInitiativeField.Text <> "", DateRaisedField.SelectedDate <> Date(
            1900,
            01,
            01
        ),
        Not IsEmpty(PersonalDataChoiceField.SelectedItems.Value),
        Not IsEmpty(SpecialCatChoiceField.SelectedItems.Value),
        Not IsEmpty(ChildrensDataChoiceField.SelectedItems.Value),
        Not IsEmpty(CriminalChoiceDataField),
	Not IsEmpty(SourcesOfDataChoiceField.SelectedItems.Value),

but we are not having any luck...

 

So what's the correct way to go about this? How can we test that at least one of the options in each of our combo-box fields is selected?

 

BTW we are relative newcomers to the joys of PowerApps

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver III
Resolver III

Re: Powerapps - check value of combo-box (selected items) in the formiula for a button(Visible prope

 Unless there is a detail I missed, probably don't need the IF().  I would write the Submit button's Visible property formula in this format.

 

 

!IsBlank(TitleField)&&
!IsBlank(DescOfIni)&&
!IsEmpty(PersonalDataChoiceField.SelectedItems)&&
!IsEmpty(SpecialCatChoiceField.SelectedItems)

 

 

 

Hope it helps,

 

Chris - IW Mentor PowerApps Training

View solution in original post

2 REPLIES 2
Highlighted
Kudo Collector
Kudo Collector

Re: Powerapps - check value of combo-box (selected items) in the formiula for a button(Visible prope

bumped
Highlighted
Resolver III
Resolver III

Re: Powerapps - check value of combo-box (selected items) in the formiula for a button(Visible prope

 Unless there is a detail I missed, probably don't need the IF().  I would write the Submit button's Visible property formula in this format.

 

 

!IsBlank(TitleField)&&
!IsBlank(DescOfIni)&&
!IsEmpty(PersonalDataChoiceField.SelectedItems)&&
!IsEmpty(SpecialCatChoiceField.SelectedItems)

 

 

 

Hope it helps,

 

Chris - IW Mentor PowerApps Training

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (670)