cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Sal
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.

 

 

 

 

 

 

1 REPLY 1
KroonOfficeSol
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: 

Control.Selected.[ParametertoWrite]

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

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,939)