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

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
Highlighted
Resident Rockstar
Resident Rockstar

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

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,878)