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

4 REPLIES 4
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

Thank you so so much! I worked!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

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