cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Prodigy
Post Prodigy

ComboBox Automated Population not rendering

Hi Folks -

 

I have a PowerApps Application that used SharePoint as the source.  I have a form where users need to select certain fields, one of them being my ComboBox.  Once selection, the value is then propgated to SP without issues.  However, there is one condition that when it is met, populates the ComboBox automatically so the end user doesn't need to select it.  However, when I hit Submit, the value isn't getting reflected in SP.

 

I belive the issue is that it doesn't recognize the auto populate value becaise it wasn't physically selected.  Is there a way around this to force it after it's been auto populated?


Thank you!

3 REPLIES 3
Highlighted
Dual Super User
Dual Super User

Re: ComboBox Automated Population not rendering

Hi @simms7400 

 

Your combox box column type in sharepoint would be a complex type - either choice or lookup

 

https://powerapps.microsoft.com/en-us/blog/default-values-for-complex-sharepoint-types/

 

for choice : 

 { Value: "Morning" }

 

for lookup

LookUp(
        Choices(MyListName.Department),
        Value = "Sales")

 

 

Regards,

Reza Dorrani

 

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

Highlighted
Post Prodigy
Post Prodigy

Re: ComboBox Automated Population not rendering

@RezaDorrani   Hi - it is neither.  It's a regular text field in SharePoint and what I have done is overlay a Combo box over the field within PowerApps.

Highlighted
Power Apps
Power Apps

Re: ComboBox Automated Population not rendering

@simms7400 If you are using a ComboBox to provide a value for a text field in SP, you can do something like the following.

 

ComboBox.Items = [ "Red", "Green", "Blue" ]

ComboBox.DefaultSelectedItems = [Parent.Default]   // for the original saved item, OR

ComboBox.DefaultSelectedItems = { Value: "Magenta" }   // for an item not in the list

 

DataCard.Update = ComboBox.Selected.Value

 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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