cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Helper V
Helper V

I don;t think it is possible to achieve.

Frequent Visitor

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (107,877)