close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Server validation based on dropdown select value?

Thread began 7/21/2016 4:04 am by tony | Last modified 7/21/2016 1:31 pm by Ray Borduin | 412 views | 1 replies |

tony

Server validation based on dropdown select value?

Hi all,
I have a dropdown in my page that is populated by a recordset.
The recordset filters a table and contains 3 fields: id, name, start_date, end_date.
The dropdown select "selects" the id field and has name as label.

This is the dropdown:
label: name 1 - value 1
label: name 2 - value 2
label: name 3 - value 3

The full filtered recordset is this:
row1: 1, name 1, 2016-07-21, 2016-07-22
row2: 2, name 2, 2016-07-20, 2016-07-22
row3: 3, name 3, 2016-07-19, 2016-07-22

Now I would like to validate the start_date and the end_date against another date field in my form.

Example:
the user select name 2 from dropdown and inserts 2016-07-19 in another field. Validation should fail.
the user select name 2 from dropdown and inserts 2016-07-21 in another field. Validation should success.

How can I do with DA?
TIA

tony

Sign in to reply to this post

Ray BorduinWebAssist

You would need custom javascript to parse the selected value to get the parts an then validate them. I could help with that in a premier support ticket. You can't do it directly with DA.

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