cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimmyWork
Memorable Member
Memorable Member

Combobox bock empty value.

Hi

 

I have a combobox that contains two values, ["1", "2"]

DefaulSelectedItems = ["1"]

 

If the user for some reason select value 1 again, then it becomes empty. (Both visually empty and data is empty)

How can i make sure the user can't have an empty value without adding a notification or something to the user.

 

I belive this is running the Teams design combox and have less options available.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
iAm_ManCat
Super User
Super User

Change the control type to a dropdown instead of a combobox, in there, there is a property called allowemptyselection, set this to false.

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

2 REPLIES 2
JimmyWork
Memorable Member
Memorable Member

I could set this as default but the visual still shows a empty box then.

If(
comboboxSelected.Value = Blank(), "1",
combobox.Selected.Value)

iAm_ManCat
Super User
Super User

Change the control type to a dropdown instead of a combobox, in there, there is a property called allowemptyselection, set this to false.

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,636)