cancel
Showing results for 
Search instead for 
Did you mean: 
labasmuse
Nintex Newbie

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

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

0 Kudos
Reply
4 Replies
Automation Master
Automation Master

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

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

0 Kudos
Reply
labasmuse
Nintex Newbie

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

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

0 Kudos
Reply
Automation Master
Automation Master

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

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?

0 Kudos
Reply
Automation Master
Automation Master

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

Hi ‌, any  progress with this?

0 Kudos
Reply