web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to reset the DropD...
Power Apps
Answered

How to reset the DropDown for the new Form entry

(0) ShareShare
ReportReport
Posted on by 2

I have 2 drop down like below and its arrange datasource:

JobType (dropdown) - item is as below

["MINOR-REPAIR","MAJOR-REPAIR","SERVICE","INSPECTION"]

 

Job-Category (Dropdown) - item is as below :

["SERVICE-A-(500 HRS SVC)","SERVICE-B-(1000 HRS SVC)","SERVICE-C-(500 HRS SVC)","SERVICE-D-(2000 HRS SVC)","ENGINE","FUEL SYSTEM"]

 

When the user want to enter into new form, the last selection of the dropdown remains, as shown in the image, it can be noted that in the new form, the first row of the datasource is not same.

 

I want to make reset for the dropdown field when the new form is opened.

 

Please advise

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,940 Most Valuable Professional on at

    Hi @MIA27 ,

    If this is a drop-down (not a combo box), firstly set AllowEmptySelection to true. Then you can set the Reset property of both to varReset and on your New Record code put at the start

    Set(varReset,false);
    Set(varReset,true)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • MIA27 Profile Picture
    2 on at

    Sir,

    Thank you for your advise.

    First I made the the dropdown AllowEmptySelection = True

     

    But could not under the second part of your solution. Where to call the code, on my edit form, there is no Onstart

    You mean to put the code at the App - OnStart property?.

     

    Please guide more how to apply.

     

    Regards.

     

     

  • MIA27 Profile Picture
    2 on at

    Also I checked the Tick button which navigate to the new Form code is as below

    OnSelect :      NewForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)

     

    Therefore, unable to understand where to call the below

    Set(varReset,false);
    Set(varReset,true)

     

    And also want to understand, for the both the dropdown it will work, or need to call separately for each.

    Please advise

     

  • MIA27 Profile Picture
    2 on at

    Based on Mr. Warren Advise, after several test of the code, found the below both working, But confused which one should I apply - as  I posted about my confusion at which startup but no answer received, Therefore I tried the below

     

    From Browse Screen - On Plus(+) Button (On select property) - I put the below Code

    Set(varReset,false);Set(varReset,true);NewForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)

     

    From EditForm1 - OnVisible property applied below

    Set(varReset,false);Set(varReset,true)

     

    Please advise, which one should be best to keep.

     

     

  • Verified answer
    WarrenBelz Profile Picture
    155,940 Most Valuable Professional on at

    @MIA27 ,

    OnVisible of EditForm1 would be best

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard