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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

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

Thanks

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (8,787)