cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
souma123
Level: Powered On

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
Community Support Team
Community Support Team

Re: Preselect items in combobox based on text value

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.
Highlighted
souma123
Level: Powered On

Re: Preselect items in combobox based on text value

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 .

souma123
Level: Powered On

Re: Preselect items in combobox based on text value

help please

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,129)