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 set Items prope...
Power Apps
Answered

How to set Items property of attachments in form control to conditional value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I'm trying to set the Item's property of the attachments card in the form control such:

 

if(Form2.Mode=FormMode.New,"",Parent.Default)

 

What value should a write in place of the:

 

""

 

My problem is that the attachments don't clear out when a user submits successive forms one after the other. This is my workaround but the problem I have is that I don't know how to write an empty/null value into this function.

 

Any help here would be most appreciated.

 

Thank you.

 

Regards,

 

Daniel

Categories:
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous After SubmitForm(yourForm) if you do a NewForm(yourForm), it would clear the Attachments Control.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @CNT ,

     

    Thanks for writing back. I didn't have NewForm() but Set(varFormMode, FormMode.New) where varFormMode was the value in the 'Defaultmode' of the form control.

     

    I've added this and will confirm when I get feedback from my users. 

     

    Thank you for helping me.

     

    Regards,

     

    Daniel

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @CNT ,

     

    I didn't hear back from my users yet but I made a test and it worked so thank you again for your help!

     

    Regards,

     

    Daniel

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous Glad to help! 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard