NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: olu on February 10, 2014, 04:35:02 AM

Title: Other Button to save and close form
Post by: olu on February 10, 2014, 04:35:02 AM
Hi please can anyone help, i have a button that i have added to a form, is there a way to make this button perform a function and after done calls up the normal save button for the form without me having to press the save button to save and close form.
Title: Re: Other Button to save and close form
Post by: olu on February 13, 2014, 01:58:53 AM
Please any help on this anyone?, Bruce!
Title: Re: Other Button to save and close form
Post by: Bruce on February 13, 2014, 05:48:28 AM
it's doable, but its a bit ugly. I'll see if I can add JavaScript support for this to NT8.

cheers
Bruce
Title: Re: Other Button to save and close form
Post by: Bruce on February 13, 2014, 11:01:41 PM
I've added it to build 7.35.
in your server-side-code you add

p_web.Script('$("#' & clip(loc:formname) & '").ntform("clickSave");' & p_web.CRLF) 

cheers
Bruce