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

Combobox Default item

Good morning friends.
I have an app that I use on an excel list. When I make a new form one of the items is in a combobox and the user can select it. Now when I try to edit the item it opens a text box. I tried to change a combo box to appear but it is not accepting, I put the Parent Default does not work. I attached the error photo.

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @straiderox2 ,

Do you want to use a combo box to display a text type field?

Please notice that field in excel are all text type or number type.

Firstly, let me explain where's your problem:

combo box' DefaultSelectedItems should be set to a record or a table.

Since this field is a text type, so I believe "Parent.Default" in this datacard should be a value.

You should set like this:
1)combo box's Items:

exceltablename

//please replace with your excel table name

combo box's primary text to the field that you want to display in this combo box

2)combo box's DefaultSelectedItems:

ThisItem

3)This datacard's Update:

ComboBoxname.Selected.fieldname

//please replace with this combo box name and this fieldname

 

 

Best regards,

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

View solution in original post

2 REPLIES 2
VijayTailor
Resident Rockstar
Resident Rockstar

 @straiderox2 ,

Please set the DatacardValue ( ComboBox)  and Set the Properties "DefaultSeletedItem" [DatacardValue.Selected.Value].

Please try this.
Hope it will help you to resolve your Issue.

For reference below Image. 

VijayTailor_0-1601383605412.png

 

v-yutliu-msft
Community Support
Community Support

Hi @straiderox2 ,

Do you want to use a combo box to display a text type field?

Please notice that field in excel are all text type or number type.

Firstly, let me explain where's your problem:

combo box' DefaultSelectedItems should be set to a record or a table.

Since this field is a text type, so I believe "Parent.Default" in this datacard should be a value.

You should set like this:
1)combo box's Items:

exceltablename

//please replace with your excel table name

combo box's primary text to the field that you want to display in this combo box

2)combo box's DefaultSelectedItems:

ThisItem

3)This datacard's Update:

ComboBoxname.Selected.fieldname

//please replace with this combo box name and this fieldname

 

 

Best regards,

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

View solution in original post

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (43,340)