Skip to main content
Nintex Community Menu Bar

Few Attachments Data needs to Be cleared in Form?

  • October 29, 2019
  • 2 replies
  • 16 views

Forum|alt.badge.img+1

Hi Folks, 

I has a Huge Nintex Form and Workflow, where i Need to Clear Some data and Attachments using JAVASCRIPT. I can now clear the data In Signleline of text , choice and other different fields. The problem is i cant Clear the information in attachments. 

I had see some sollution to clear all the attachments data .

http://www.vadimtabakman.com/nintex-workflow-delete-all-attachments-uda.aspx

But I need to clear only Few  Attachments in the Form NOT all the attachments. 

 

Can any one suggest me the best possible way to cleat attachments or else how to parse them. 

2 replies

Forum|alt.badge.img+9
  • October 29, 2019
If you only have a few attachments to delete then
1) within the For Each loop use the Filter action and add all of the attachments to delete (separated by the OR condition). Note: Do this at the end of your Workflow because if the Filter doesn't produce any results the Workflow will automatically stop
2) Use Vadim's method to DeleteAttachment for the current item that satisfies the Filter from the first step.

Forum|alt.badge.img+1
  • Author
  • October 30, 2019

Thanks for the Filter suggestion. But let me be specific with my question regarding attachments.

I have multiple attachment fields/controls on the Nintex form, I need to clear/delete only attactments from specific controls but I couldn't get control id's through Nintex workflow, So I was more looking for a javascript solutions.