all fields with datePicker jQuery behave strangely.

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

all fields with datePicker jQuery behave strangely.

#1

Postby xren » Mon Mar 30, 2015 4:35 pm

Hi,

I have a form with several date fields using jQuery datePicker.
The form opens fine. After I set the form body panel to displayonly in the before page script, the form opens with the calender showed for all the date fields.

What is the reason? How to make the calender for each fields does not show up?

Thanks,
Xiaoli
0 x

alexmcclune
Ebase User
Posts: 95
Joined: Wed Feb 27, 2013 5:16 pm

#2

Postby alexmcclune » Wed Apr 01, 2015 10:08 am

when do you initialise your datepickers, I imagine on document ready?

On our text control for our date field our HTML Element Properties contains the following:

id = datePicker

Then under Jquery, onclick event:

Code: Select all

 $('#datePicker').datepicker({
      dateFormat: 'dd/mm/yy'
   });
This allows the calendar to pop up when the user clicks the field
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#3

Postby xren » Wed Apr 01, 2015 12:30 pm

It is document.ready. I will try the click.

Thanks,
Xiaoli
0 x

User avatar
Wai
Moderator
Moderator
Posts: 165
Joined: Wed Sep 12, 2007 9:04 am
Location: Sandy, UK
Contact:

#4

Postby Wai » Sun Jan 31, 2016 12:37 pm

Is your date fields display only?
I have seen this happen when it is display only
0 x


Who is online

Users browsing this forum: No registered users and 5 guests