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 / Auto reset dropdown
Power Apps
Answered

Auto reset dropdown

(0) ShareShare
ReportReport
Posted on by 85

Hi..

I have 2 fields where one contains a dropdown and the other contains an attachment.

and I also made a control function on attachments in the dropdown, so when the dropdown is selected 5 for example, the max file attachment will also be 5 and can't be more.

So my question is ,can I make the dropdown auto reset when the dropdown is selected but attachment is not input/blank?

 

Thank's in advice

att.jpg
Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @misterjonih :

    Could you please explain what "make the dropdown auto reset when the dropdown is selected but attachment is not input/blank" means? 

    Best Regards,

    Bof

  • misterjonih Profile Picture
    85 on at

    Thank's for your respon @v-bofeng-msft 

    I mean, I want to reduce the risk of data read.
    because if it is not made like that, then the SP List will read the selected numbers in the dropdown, while the attachments are not input/uploaded files

     

    list.png
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @misterjonih :

    Do you want to reset the number selected in the combo box to the number of uploaded files before submitting the record?

    If so,could you please tell me:

    1\What is the combo box's DefaultSelectedItems property?

    2\What is the combo box's items property?

    3\How do you submit the attachments?Could you please show me the formula?
    Best Regards,

    Bof

     

  • misterjonih Profile Picture
    85 on at

    @v-bofeng-msft 

    this my capture for your question no 1 and 2
    and for submit the attachments I haven't made it yet, because I still don't know (maybe you can help me in this section)😞🙏

    Cmb.png
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @misterjonih :

    I assume you want to create a new record.

    1\My SP list:

    vbofengmsft_0-1629882115940.png

    2\My App

    vbofengmsft_1-1629882139387.png

    3\Submit the Record

     

    Patch(
     misterjonihTest,
     Defaults(misterjonihTest),
     Form1.Updates, 
     {
     TotalMain:
     LookUp(
     Choices(misterjonihTest.TotalMain),
     Value=Text(CountRows(Attachments_DataCard1.Update))
     )
     }
    );
    ResetForm(Form1)

     

    Result:

    vbofengmsft_2-1629882264376.png

    Best Regards,

    Bof

     

  • misterjonih Profile Picture
    85 on at

    @v-bofeng-msft thankyouuuuu!!!!!

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard