close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validate a checkbox

Thread began 7/20/2011 12:32 am by superpac250441 | Last modified 5/07/2012 10:41 am by Jason Byrnes | 1960 views | 6 replies |

superpac250441

Validate a checkbox

On a registration form, I have a checkbox which I want the user to tick to agree to terms. The box is required to be ticked so I would like an error message to come up if it remains unticked on submission. How do I go about doing this correctly?
Many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

make sure that the check box has a checked value.

edit the Server Validation Server behavior, select the Required / not blank validation type.

for the server variable, click the lightning bolt and select the checkbox, then click the plus button to add it to the list of validations.


in design view, type the error message next to the checkbox, and select it.

go to webassist -> Forms -> Validation -> Validation Show If

from the list of validations, select the required validation for the checkbox, then click the plus button to add it to the failed list and click ok.

Sign in to reply to this post

superpac250441

Many thanks Jason

Sign in to reply to this post

un33k9309513

Checkbox agree to terms

Hi,

I was searching through and found this thread to be the closest to my question. How can I ensure my protection if someone comes back and claims he did not agree to the terms and since I would have access to the database I put in the 1 or what ever value the check box puts into the database field.

1. Is there a secure way or system big companies use that proves the checkbox came from that website visitor? Any suggestions would make my paperwork less.
2. My best thought, can a field in the db be made to only accept the 1st input value and no changes.

thanks

Sign in to reply to this post

Jason ByrnesWebAssist

you should use Server Validation to ensure that the checkbox is checked.


By preventing the form from submitting unless the checkbox is checked, the very fact that the record is in the database is proof that user agreed to the terms.

Set the checked value of the Agree checkbox to 1, and use Required not Blank validation to make sure it is checked.

if it is not checked, the form cant be submitted, and the registration record will not be saved.

Sign in to reply to this post

un33k9309513

Thank you for the reply. However, what if the user states he did not submit and agree to it and would it not be possible for me to simply fill out the db record manually?
I have been wondering for an answer on this for a while, because I would like to make things paperless, but need it to be failsafe if ever the user wanted to stir trouble.
Or what if the user doesn't say the truth and says the policy is different than what he checked.

I am only trying to be proactive before going paperless,

thanks

Sign in to reply to this post

Jason ByrnesWebAssist

in the registration, you can record the IP of the user who fill in the form, sure, you could fill in the record on the database but you would need to know the IP address.

you should also be recording the registration date in your database.

These questions would really be best posed to a lawyer however.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...