Hi ,
Is it possible to get the click event of 'Save Draft' button using JavaScript function,My requirement is to save some field information in database externally.
Any suggestions guys?
Hi ,
Is it possible to get the click event of 'Save Draft' button using JavaScript function,My requirement is to save some field information in database externally.
Any suggestions guys?
Yes you would add in the following event listener to your js section, then add in your desired code.
$(".draft-btn").click(function(e) { //run desired code });
Hi Xavier,
the code which you provide is for the draft button handling click event on the initial stage,but i am referring the draft button on the top right of the page after submission when the task is opened.I need to customize that button ,hope you got that.
Here i attached the screenshot of that page too.
I would advise following a different approach, such as running a workflow activity after the submission to update your database. You can't modify that default button without messing with the program files
Thanks for your response,I need to achieve this when user clicks default 'save draft' button.I believe Workflow activity works only after submission of Form.
Is it possible to trigger Workflow activity on 'save draft' button click?
No that functionality does not exist. You could edit the form the user task receives to have a field allowing the user to save the form and have that kick off a workflow