Skip to main content
Nintex Community Menu Bar

How to save form data after attaching a file to the form by javascript?

  • August 17, 2017
  • 4 replies
  • 55 views

Forum|alt.badge.img+4

I wonder if there is a way to save a Nintex form after a special time (autosave) or save after adding an attachment by javaScript.

Up to now I could not even trigger a "save button" by JavaScript.

I tried this:

NWF$('.AutoSaveButton').click();  (created a save button with the Name "AutoSaveButton" according to http://www.ashu-tosh.com/2017/01/nintex-forms-implementing-auto-save.html but it did not work).

I am thankful for every hint.

Andy

4 replies

Forum|alt.badge.img+14
  • Scholar
  • September 3, 2017

'AutoSaveButton' should have been button's CSS class, not its name.


Forum|alt.badge.img+4
  • Author
  • September 4, 2017

Thank you. Yes this I correct and it  works now. :-) So far so good. But this is only a part solution.

Obviously there seems to be no event handler for the Event when an attachment ist uploaded. Events in Nintex (https://community.nintex.com/docs/DOC-1217).

When I click on the button "Add attachment" in the attachment control there seems to be no event handler for this. Does anybody know a solution or give a hint?

Thank you in advance...

Andy


Forum|alt.badge.img+14
  • Scholar
  • September 4, 2017

no there is no such an event.

but why would you want to save item immediately after file attachment is added? what if user makes a mistake a will want to remove/replace attachment?


Forum|alt.badge.img+14
  • Scholar
  • October 13, 2017

Hi ‌, any  progress with this?