close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adding an "Agree" button

Thread began 8/20/2010 10:13 am by info72555 | Last modified 8/23/2010 9:00 am by Jason Byrnes | 1994 views | 7 replies |

info72555

Adding an "Agree" button

I would like to have a single checkbox right above the Submit button. Without being checked, the form cannot be sent. I added this box as 'Required' but cannot figure out how to have the default as unchecked. Digging into the code isn't really for me and I gave up after exploring options in the Property Inspector. I have the impression it's a very easy fix but I cannot figure it out.

Thanks is advance :o)

Sign in to reply to this post

Jason ByrnesWebAssist

select the checkbox in design view

and make sure a checked value is set.

Sign in to reply to this post

info72555

Not sure if I explained myself properly

The person filling out the form is required to check this box manually to agree to the terms and conditions Before it can be sent. So as soon as the form is loaded, the checkbox needs to be empty.

No matter what I try, the box is always checked by default. The form therefore passes validation and can be sent but this causes a potential legal glitch: The form makes the assumption the user has ALREADY agreed to the terms and conditions.

Thanks! :o)

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of your page in a zip archive.

Sign in to reply to this post

info72555

More info

The link to the form: ContactUs.php

Based on what I have found on Google, PHP's boxes are all checked by default - I cannot find the code to uncheck it and I am sure I am looking in all the wrong places.

I suck at anything to do with tweaking code so I am grateful for any help.

Form attached - thank you

Attached Files
ContactUs.zip
Sign in to reply to this post

Jason ByrnesWebAssist

change the checkbox code:

php:
<input name="Has_read_and_understands_disclaimer" type="checkbox" class="formCheckboxField_Standard" id="Has_read_and_understands_disclaimer" tabindex="16" value="Yes" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("ContactUs","Has_read_and_understands_disclaimer"):""),""))) {echo "checked=\"checked\"";} ?> />



to:

php:
<input name="Has_read_and_understands_disclaimer" type="checkbox" class="formCheckboxField_Standard" id="Has_read_and_understands_disclaimer" tabindex="16" value="Yes"  />
Sign in to reply to this post

info72555

:o)

Thank you jason - you rock!! ;-)

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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...