When Max Attachments is set to 1, Remove Attachment action does not remove the attachment, instead puts Strike-through on the file. Add New Attachment is not available after removing the first and only attached file.
Solved! Go to Solution.
Hi @arevsun1
Thanks for sharing the details. I followed the steps share by you and confirm that I am also seeing the same behavior.
I was able to add another attachment once the attachment is removed and form is submitted again. As a workaround to this, you can set the OnRemoveFile property of the attachement to:
If(Form2.Mode = FormMode.Edit,SubmitForm(Form2))
Here Form2 is the name of form control.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi @arevsun1
Thanks for the reply!
The Attachment control is inside of a form which is connected to a SharePoint list. As mentioned in the original post, the only customization is done with changing the MaxAttchaments to 1.
Hi @arevsun1
That is weird, considering that I am not doing anything extraordinary.
Could you please try the following scenario?
Add an attachment. Save the form. Open it again. Remove the attachment and try adding an attachment again?
Thanks, appreciate you looking into the issue!
Hi @arevsun1
Thanks for sharing the details. I followed the steps share by you and confirm that I am also seeing the same behavior.
I was able to add another attachment once the attachment is removed and form is submitted again. As a workaround to this, you can set the OnRemoveFile property of the attachement to:
If(Form2.Mode = FormMode.Edit,SubmitForm(Form2))
Here Form2 is the name of form control.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Thanks, I see your logic. You were very helpful!
Only it worked after adding ViewForm(formName); EditForm(formName) followed by SubmitForm() action.
User | Count |
---|---|
226 | |
98 | |
95 | |
56 | |
33 |
User | Count |
---|---|
278 | |
108 | |
107 | |
64 | |
62 |