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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Datepicker / validated fields

Thread began 4/10/2013 8:37 am by Banksie | Last modified 4/10/2013 11:22 am by Banksie | 261 views | 3 replies |

Banksie

Datepicker / validated fields

I have a form including 2 datepicker fields (for a start and end date of a reservation period; datepicker_1 allows choice of dates from today onwards - datepicker_2 allows choice of dates from the selected datepicker_1 value onwards). On submission the entire form is validated and, if validation fails, the form is re-presented for correction. All validated field values are populated as you'd expect from the WAFV_Conditional values - except the datepicker fields.

How to I set the initial value of the datepicker fields (assuming they're validated) to the WAFV validated field value when the whole form is displayed, say, for other invalid fields to be corrected?

I know how to set the initial date, for instance, to be today (so earlier dates are not selected):
dateFormat: 'D, d M, yy', minDate: 0,

but can't figure out how to set the date, after validation, to a validated field being returned with all other WAFV_Conditional values.

Sign in to reply to this post

Jason ByrnesWebAssist

you need to use split view so you can access the code.

in the design side, select the date picker element.

On the code side, it will show the datae picker element code, there is a value attribute:
value=""

place your cursor between the quotes, and go to the bindings panel. In the bindings panel, expand the validated entries collection, select the corresponding element and click the bind button, this will add the validated entries binding code to the value attribute of the date picker element.

Sign in to reply to this post

Banksie

Many thanks (as usual) Jason. Should've been obvious to me - thought the value had to be set in the javascript initialisation and not in the field value (incidently - I had to add the "value" attribute by hand - it wasn't there in the field properties by default. No problem, just a point to note)

Cheers

Gary

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