cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
souma123
Helper I
Helper I

Preselect items in combobox based on text value

Hi all, 

 

i want to preselect in a combobox the items listed in a text box :

 

List box with the 12 months of the year, i want to preselect the months that figures out in a text box (January, march,December), how can i do please ?

 

i used this : Split(NewForecastLoadTable_2.Selected.Load_x0020_Month,";") but it shows this error : "the property excpects record values but this rule produces icompatible table value"

 

3 REPLIES 3
v-micsh-msft
Community Support
Community Support

Would you please share more details about the List box and the ComboBox control, such as the items property, data source, and the corresponding field type (or properties)?

The Split function breaks a text string into a table of substrings.

 

And Combox Box control default property expects a single record selected from the table configured in its items property.

 

If the source from List box doesn't match the table structure, it will still not work.

 

Please first take a look at the two controls:

ListBox in PowerApps:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-list-box 

 

ComboBox in PowerApps

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-combo-box

 

And please post back if you need any further help.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I dont have any combobox it's rather a text box , in fact i want to recover the value of the list box saved from the add screen , and since it's saved as a text i tried to use split function in the default proprety of the list box but iin vain ,,,

Item property :["Junuary","February","March","April","May","June","July","August","September","October","November","December"]

 

i'am just seeking a workarround to recover the value of alist box saved in sharepoint  in the edit form .

help please

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (1,383)