cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dperez13
Helper V
Helper V

How do I set defaultselecteditems to a specific value on new form, but the multiple possible values that were chosen from the record when not new?

i have a drop down that on new form id like to default to another column, that part ive managed,

but on the second part of my if statementm id like the defaultselecteditems to be the items selected , essentially overriding the autopopulated item if the user wishes to do.

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @dperez13 ,

 

I see you have posted several similar threads on this People Picker Combo box, have you solved this issue?

 

Generally speaking, if the Combo box allows single selection, it requires Record type data, and if it allow multiple selections, it requires table type data but you can populate a single record into DefaultSelectedItems property. For your scenario, if you would like to auto populate the allow multiple selections Combo box with some other People Picker, you can use the selections from that control directly:

If(Form.Mode = FormMode.New, [{DisplayName:..., Claims:...},{DisplayName:..., Claims:...}], OtherPeoplePicker.Selected)

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

4 REPLIES 4
phipps0218
Super User
Super User

Use a variable for example:

Set(formRecord, Blank()); for a new form or for a record from a gallery Set(formRecord, thisitem)

Then use this variable within an IF statement on your default property. 

 

Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
Twitter: https://twitter.com/phipps0218

So under the default property, do I need to filter or loop through the for all defaultselectedselecteditems versus set a record/table (still unclear which one is required here) to other values.

 

how do i set a default person/people drop down to say, two records?

 

{ [displayname : 1 , email : 1 ], [displayname: 2, email:2] }

I am not sure if this will work?

{ [displayname : 1 , email : 1 ], [displayname: 2, email:2] }

 

If not you may have to use a lookup funtion. 

v-jefferni
Community Support
Community Support

Hi @dperez13 ,

 

I see you have posted several similar threads on this People Picker Combo box, have you solved this issue?

 

Generally speaking, if the Combo box allows single selection, it requires Record type data, and if it allow multiple selections, it requires table type data but you can populate a single record into DefaultSelectedItems property. For your scenario, if you would like to auto populate the allow multiple selections Combo box with some other People Picker, you can use the selections from that control directly:

If(Form.Mode = FormMode.New, [{DisplayName:..., Claims:...},{DisplayName:..., Claims:...}], OtherPeoplePicker.Selected)

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,747)