close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Agreeing to terms and conditions check box

Thread begun 12/10/2009 1:03 pm by jo4koalas392067 | Last modified 12/14/2009 12:24 pm by jo4koalas392067 | 4514 views | 15 replies |

jo4koalas392067

Agreeing to terms and conditions check box

Hi
I have been working on this for nearly a week and gone around in circles so hope someone can help. I want to add a check box that shows that the person registering agrees to our terms and conditions.

I started by adding a spry check box and that worked until I added client validation, using WA tools, for the other fields in the registration form and now it will not work.

Any ideas how I validate this check box to make sure that it is ticked before it will complete the registration.

I have looked at other posts and nothing seems to be working for me.

Many Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

change:

var sprycheckbox2 = new Spry.Widget.ValidationCheckbox("sprycheckbox2", {isRequired:false});



To:

var sprycheckbox2 = new Spry.Widget.ValidationCheckbox("sprycheckbox2");
Sign in to reply to this post

jo4koalas392067

Hi Jason

Sorry that didn't work. It still registers the user, takes them to the login page and doesn't query the fact the check box isn't ticked.

Any other suggestions?

Thanks

Jo

Sign in to reply to this post

Jason ByrnesWebAssist

instead of using spry validation on the checkbox, add client side required / not blank validation on the checkbox.

Sign in to reply to this post

jo4koalas392067

I am afraid that didn't work either. I have attached the latest version, just in case I have added the validation incorrectly.

Thanks

Sign in to reply to this post

jo4koalas392067

Sorry attached wrong version of the file.

Sign in to reply to this post

Jason ByrnesWebAssist

1) in the on submit event of the form, you have the following:
onsubmit="This behavior cannot be applied without a regular expression specified.;return document.MM_returnValue;



this is bypassing the validation.


2) you are using a regular expression on the terms form element. The regular expression you are using basically means "allow anything". use Required / Not Blank validation instead.

Sign in to reply to this post

jo4koalas392067

Sorry this is where my lack of programming knowledge comes in. How do I do this exactly?

Thanks

Jo

Sign in to reply to this post

Jason ByrnesWebAssist

You dont need to program anything. When editing the client validation that has been applied for this form, remove the regular expression validation that you have applied to the checkbox, and replace it with Required not Blank validation.

Sign in to reply to this post

jo4koalas392067

Excuse my ignorance but what is the expression I need, as I have not ticked "Allow blank entry". I assuming you are referring to the expression which currently shows: /\s*/i which is the default. What do I change this to?

Also how do I amend it without having to do complete form validation all over again, as for some reason it will not allow me to amend it brings up a blank wizard, even though the code is still there.

Thanks

Jo

Sign in to reply to this post
loading

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