NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: markster on December 13, 2013, 05:55:15 PM
-
I would like to open a data entry form with the Save button displayed but disabled. Then once specific conditions are met, based on user data entry, I would like to enable the Save button. Is there a simple way to do this?
Regards,
Mark
-
I don't think there's a really simple way to do this. I've made a note for a future build.
-
Hi Mark,
at the end of the FormGenerate routine;
p_web.jQuery('#' & clip(loc:formname) ,'ntform','"disableSave"')
then when the conditions are met (presumably in the server side code of one or more fields)
p_web.jQuery('#' & clip(loc:formname) ,'ntform','"enableSave"')
cheers
Bruce
-
will this method work on older builds?
-
yes, these methods are used by the File Uploader so I think this goes back a fair ways.
cheers
Bruce
-
Bruce and Kevin,
I just tried this and I lose all tabs on the form in question. Still experimenting.
Jeff
-
check the FireBug console for a JavaScript error. If you had an error then you'd lose any further JavaScript - so things like the tabs and buttons would be "wrong".
cheers
Bruce