In my scenario I have several comboboxes that should be checked on save if they contain an entry or are they empty. If they are empty an error message should be thrown. But the problem is now, only when I have selected an item and then removed it again the checks work. If nothing is selected before, the check does not work. In addition I have set for DefaultselectedItems = Blank()
What I have tried:
If(isEmpty(combobox.selecteditems) or If(isEmpty(combobox.selecteditems.Value)
combobox.selecteditems = Blank() or combobox.selecteditems.Value = Blank()
CountRows(combobox.Selecteditems.value) = 0
Solved! Go to Solution.
Do you want to check if there is any selected or search text within the Combo Box?
Could you please tell me more about your scenario?
If you want to determine there is nothing selected and nothing searched within Combo Box, you should use the And operator to combine the conditions that check Combo Box selected and Combo Box search text.
Please modify your formula as below:
If( (IsEmpty(ComboBox42.SelectedItems) || IsBlank(ComboBox42.Selected.Value)) && IsBlank(ComboBox42.SearchText), SubmitForm(EditForm1), Notify( "Please fill in the Combo Box!", Error ) )
thanks, I ask me why you have to proof all this things at the same time but I think this has to do with the structure of the combobox.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.