NetTalk Central

Author Topic: Conditionally enable SaveButton  (Read 3422 times)

lanmicro

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Email
Conditionally enable SaveButton
« 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.
Gregory C. Bailey

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: Conditionally enable SaveButton
« Reply #1 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

lanmicro

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Email
Re: Conditionally enable SaveButton
« Reply #2 on: July 11, 2007, 07:45:31 AM »
Thanks Bruce
Gregory C. Bailey