NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jking on March 19, 2018, 06:56:36 PM

Title: Disable/Hide Save button on another tab?
Post by: jking 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.
Title: Re: Disable/Hide Save button on another tab?
Post by: Bruce 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