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

Initialize field value of type Combo box with a text field

Hi,

 

on a canvas app, I want to initialize a field with a value that is contained in a field of type text.

I initialize an other field of type text without any issue, so I guess the issue is that their types are different.

How can I handle this?

The combo field in error, with the Default property = Inputbet.text (the original field from a previous form)202.png

The field of type text just below that is well filled with the property Default =Inputbet

201.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@LauM 

You are trying to set the Default property of a ComboBox...that property actually does nothing on it.

You need to set the DefaultSelectedItems property.  It must be a record (not just text) of the record(s) you want selected by default.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@LauM 

You are trying to set the Default property of a ComboBox...that property actually does nothing on it.

You need to set the DefaultSelectedItems property.  It must be a record (not just text) of the record(s) you want selected by default.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

It really helped, so I could do what I want!

Thanks

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,420)