Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

How to set lookup dropdown in New Form from a variable

How to set lookup dropdown in New Form from  a variable?

I have one variable that I set in the first screen and New form in the second screen. I want to set lookup drop-down's default value to the variable I set in first screen so users don't need to select from the list. That varriable value is already exists in the dropdown lookup values so I'm not setting something unique, Just the value from the values already in the lookup list.

I'm able to display the variable value on drop-down "DefaultSelectedItems" property but when I try to Submit the form it throw an error and I have to select the value from the drop-down again to save it.







Level 10

Re: How to set lookup dropdown in New Form from a variable

When it's about writing the value back by submitting the form you have to connect the update property off the datacard to your control. So select the datacard template (basically the total datacard) and then add to the datacard update: 


The parameter which you want to write must be accepted by your table, so if this is an id then this id has to be a column in the combobox.


btw to set the combobox default property you best use the formula:

LookUp(DataSource, [FieldToMatch] = Parent.Default)

Basically the combobox is a list off objects, so you set a objects as the default.


Hope this is clear and helps.


Greating Paul

Helpful resources

New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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