NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: lanmicro on July 10, 2007, 12:07:17 PM

Title: Conditionally enable SaveButton
Post by: lanmicro on July 10, 2007, 12:07:17 PM
Is it possible to conditionally enable the save button? 

What I want is for the end user to click on 5 check boxes acknowledging that they have read some items.  Only after all 5 items are checked do I want it to be possible to press the Save button.  They can always press the cancel button to leave the page.
Title: Re: Conditionally enable SaveButton
Post by: Bruce on July 10, 2007, 10:14:55 PM
Hi Lan,

At the moment it's not that easy to do this. What you'd have to do, is in the "ValidateAll" routine in the form, is check that all  the fields are ticked, and if one isn't then set
loc:invalid = 'Fil:Whatever'

This will push the user back on the form so they can check the box.

Cheers
Bruce
Title: Re: Conditionally enable SaveButton
Post by: lanmicro on July 11, 2007, 07:45:31 AM
Thanks Bruce