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?
Solved! Go to Solution.
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.
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:
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.
Best regards,
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.
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:
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.
Best regards,
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)
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
179 | |
52 | |
41 | |
38 | |
28 |
User | Count |
---|---|
262 | |
81 | |
71 | |
69 | |
66 |