cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Dropdown default value based on last record...using a checkbox

I would like to enter values for a few fields and lock the value of these for future form entries.

 

For example, if I have 10 fields on my form, I would like to fill out the first 3 fields (dropdown lists) and check a box to "lock" these values for the first 3 fields.

 

After submitting the form, I want the next blank edit form to have the "locked values" in the first 3 fields (dropdown lists).

 

I've been trying this formula in the first field dropdown item property, with no success:

 

If(Checkbox1.Value=true,Last(Table1).namc,(Distinct(Table1_1,NAMC))

 

Table 1 is my main data table and all form submission update this table. Table 1 has a column named namc. I'm trying to lookup the last record for this table and use the namc value as the default in the new edit form field in the if condition.

 

Table 1_1 has a column named NAMC. It's just a list of names that will be the default items for the Dropdown in the else/if condition

 

Any ideas how to lock in default values for subsequent form entries?

 

Thank you, in advance.

2 REPLIES 2
Highlighted
Helper V
Helper V

Re: Dropdown default value based on last record...using a checkbox

I don;t think it is possible to achieve.

Highlighted
Frequent Visitor

Re: Dropdown default value based on last record...using a checkbox

I am relatively new to Power Apps, but couldn't you simply set 3 variables when the box is checked and set them to Blank() if the box is unchecked. On any subsequent forms, you could default those 3 fields to the values saved in the variables.

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

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

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

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 (4,865)