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

I don;t think it is possible to achieve.

CDogs1964
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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,804)