cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EriSto
Helper II
Helper II

Possible to clear attachments when editing a form?

Hi all,

 

I have a standard form with multiple text inputs, in addition to an "attachments" datacard to upload images.

Is it possible to clear the attachements field when editing an existing form? 

2 ACCEPTED SOLUTIONS

Accepted Solutions
eka24
Super User
Super User

Clear the Parent.Default on the and make it blank ""

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

v-yutliu-msft
Community Support
Community Support

Hi @EriSto ,

Do you want to clear all the data in the attachments control in a form when editing an existing record?

Actually, if you want to clear the data in the attachments control, you just need to to delete all the attachments in the attachments control.

Just like this:

87.gif

If you want to clear all the attachments by clicking a button, you just need to use this button to make the attachments control's Default property to blank.

You could set like this:

insert a button to clear all the attachments

set the button's OnSelect:

 

Set(var,true)

 

set attachments control's Default:

 

If(!var,Parent.Default)

 

Then at the beginning the attachments control will display all the attachments in this existing record.

If you click that button, all the attachments will be cleared.

876.PNG

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
eka24
Super User
Super User

Clear the Parent.Default on the and make it blank ""

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

v-yutliu-msft
Community Support
Community Support

Hi @EriSto ,

Do you want to clear all the data in the attachments control in a form when editing an existing record?

Actually, if you want to clear the data in the attachments control, you just need to to delete all the attachments in the attachments control.

Just like this:

87.gif

If you want to clear all the attachments by clicking a button, you just need to use this button to make the attachments control's Default property to blank.

You could set like this:

insert a button to clear all the attachments

set the button's OnSelect:

 

Set(var,true)

 

set attachments control's Default:

 

If(!var,Parent.Default)

 

Then at the beginning the attachments control will display all the attachments in this existing record.

If you click that button, all the attachments will be cleared.

876.PNG

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
joanneleung
Frequent Visitor

Dear Phoebe Liu,

 

Thanks for your solution, I've tried it but it did not have any response after clicking the button. Please help. Thanks.

 

Button onSelect : Set(var_rm,true)

Attachments_DataCard1 > DataCardValue9 > Items : If(!var_rm,Parent.Default)

 

rm_att01.jpgrm_att02.jpg

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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
Users online (1,054)