close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Option selected, Specific Option Required

Thread began 10/15/2009 10:25 pm by jeremydavies390881 | Last modified 10/27/2009 7:54 pm by jeremydavies390881 | 1250 views | 6 replies |

jeremydavies390881

Option selected, Specific Option Required

Hello... again. :)

I was wondering if it's possible to have it so....

Client selects a certain option, and a couple forms/options below are required to be filled out?

If you go to legal.php you can find the form there.

What I want, is if the client selects that they are under the age of 18, the parent/guardian name/email/etc. are required to be filled out. But if the client is over the age of 18, the following options are not required.

Is there any way to do that? Do I need to download Dynamic Dropdowns2?

Thanks!
Jeremy

Sign in to reply to this post

Eric Mittman

You can do this by applying client validations to the page manually. The first thing you would do is apply a required not blank validation for the checkbox for over 18. Then as responses to this validation you can apply the conditional validations for the other fields that would come next.

There is a bit more information about manually applying the client validations to your form in the help documentation that is available at Help > WebAssist > CSS Form Builder > Help.

If you have any troubles with any part of this or have any questions please post back and we will be glad to help you out.

Sign in to reply to this post

jeremydavies390881

I've been looking at the help section... and it makes no sense to me. :(

I think, what I'd want to do, is have the Enabling and Disabling Form Elements thing happen. If I understand it correctly, will it hide the parent/guadian section, unless the client selects 'No' for being 18?

Sign in to reply to this post

Eric Mittman

You can use the show hide validation responses to have the form elements become enabled if they choose no. To start this out you would need to set a required validation on the select list. One of the options in this list should have a value but not the other one.

You then apply the enable/disable response validation after this required. You should give this a try with a single form element first to get a feel for how it works and needs to be configured.

If you set the 'yes' option to have a value in the select list and do not specify a value for the no option then you would specify the triggering form element as this select list and if trigger is not valid disable the form element. Please give this a try and if you have any questions about any part of it post back and include a link to what you have up.

Sign in to reply to this post

jeremydavies390881

Alrighty...

I went to the help section, CSS Form Builder - Help Document, and clicked on Enabling/Disabling Form Elements. Is that even the right area I should be in?

Anywho, when it tells me to select the form element that will trigger the validation, then In the Behaviors panel, click the Plus (+) button and then select WA Validation Toolkit > Apply Client Validations > Enable/Disable Form Elements... there is no 'Apply Client Validations' option. So, I'm not able to finish this... that I know of.

What you told me to do... completely went over my head. I don't know what I would have to configure or anything....

Oh, and here is the link to the test section I made for this. It's the exact same form that I'll be using for the actual thing. testpage.php

Sign in to reply to this post

Eric Mittman

When it comes to selecting the client validations this is done from the Behaviors tab of the Tag <select> panel, not the Server Behaviors tab. I'm including a screen shot of this access point for you.

When applying this validation you choose the triggering form element and apply a validation to it. In my test I used a select list and with this select list selected in design view I applied the required not blank validation.

Next you must apply the response to this validation, in this case it will be an enable disable form element response validation. With the same select list selected in DW add the enable/disable form element validation. For the triggering form element I selected the select list, for the target I selected my text field. I then choose, 'if entry is valid, enable the target element'.

The idea is that you apply a validation, then a response. If you want to apply further client validations on the page you can add in more validations and responses to them. I'm including a sample page I created that demonstrates this as well as a screen shot showing the access point.

Attached Files
enable-disable-form-element.zip
Sign in to reply to this post

jeremydavies390881

Awesome!

I'll give that a try. Thank you so much for your help. :)

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