NetTalk Central

Author Topic: Other Button to save and close form  (Read 3191 times)

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Other Button to save and close form
« 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.

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: Other Button to save and close form
« Reply #1 on: February 13, 2014, 01:58:53 AM »
Please any help on this anyone?, Bruce!

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Other Button to save and close form
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Other Button to save and close form
« Reply #3 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