close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

require a field based on different field selection

Thread began 12/28/2012 7:10 pm by bryan107833 | Last modified 4/18/2013 12:14 pm by bryan107833 | 1312 views | 9 replies


Thank you, that was helpful but I am still a little short. (Part of my problem is also that the page I need to update was created with your previous validation toolkit which works very differently and is no longer avail through Dreamweaver now that I have updated to the newer Super Suite. - thus I it would appear that I need to delete all of the old validation on the checkout page and start fresh with your newer system.)

Two additional questions:
I see how this code will require validation if another field has a value, but I need it to validate only if that field has a specific value. i.e. shipping_state = NY. How would I amend this code for this.

<?php echo((isset($_POST['callMe'])?$_POST['phoneNumber']:"(222) 222-2222")); ?>

Also, is there a reason in this example you sent that you filled in the phone number (222)222-2222 and did not just leave it blank as ""?

All the above will be necessary for the future but in regard the site that I am currently working can you show me how to edit the code below so that it could be added to validate the county field based on the shipping_state_province value being NY? It appears that I may need it to validate (require the county field) for both NY and PA so if you could also show me the adapted code if I need both NY & PA that would be great. (This would be much quicker / easier in this case then transferring to the newer Webasssist system.)

WAValidateRQ(document.forms[2].shipping_state_province,'- Please select Shipping State / Province',document.forms[2].shipping_state_province,0,true,'select');

Thank you.

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





Ease of use


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