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

  • 17 August 2017
  • 4 replies
  • 36 views

Badge +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

Userlevel 5
Badge +14

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

Badge +4

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

Userlevel 5
Badge +14

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?

Userlevel 5
Badge +14

Hi ‌, any  progress with this?

Reply