NetTalk Central

Author Topic: Disable/Hide Save button on another tab?  (Read 4056 times)

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Disable/Hide Save button on another tab?
« on: March 19, 2018, 06:56:36 PM »
I would like to hide or disable the Save button on Tab 2 of a form, but keep it enabled on Tab 1.  I have the following code:

p_web.jQuery('#' & clip(loc:formname) ,'ntform','"disableSave"')

but can't find the correct embed.  Can any one suggest where this should go?

Thanks.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Disable/Hide Save button on another tab?
« Reply #1 on: March 21, 2018, 06:30:27 AM »
End Of TabChanged routine

  if tabnumber
    p_web.ntForm(loc:formname,'disableSave')
  else
    p_web.ntForm(loc:formname,'enableSave')
  end

Remember that tabs are numbered from 0, not from 1.

cheers
Bruce