Skip Navigation

[Resolved] disable date picker

This support ticket is created 7 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 41 replies, has 2 voices.

Last updated by Shane 7 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#569136

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

So the issue is that it needs to be a date field to allow for filtering like that.

Is it that you have a problem with the with the format being showed in the form itself ?

Please let me know.
Thanks,
Shane

#569144
Schermafdruk 2017-09-12 16.12.22.png

Shane,

Just a plain field where I can fill in a date end that is stored like a date. So we can make calculations and filters in it. For example in the form we are storing a date for the dat the course is evaluated. I want to filter alle the evaluations for an student in a month. So I need a datefield for that. But I don't want tot use the datepicker for editing on data entry. Just a field with the mask dd-mm-yyyy and storend as an date in the database. I made an example in gravityforms.

#569147

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

Thanks for the clarity, this won't be possible with our types fields. Reason is because our date fields use the jquery ui datepickers, there should be a way to change the format however it would still be using the datepicker.

With the format you want it in from the screenshot it would be stored as separate information. So any filtering would require you to combine the fields. For e.g You can filter for all the posts between the year 1992 and 2000 and it will work.

I'm assuming that you want to do some filtering like this correct?

Please let me know.
Thanks,
Shane

#569342
Schermafdruk 2017-09-13 01.15.57.png

Shane,

Can You please look at this one:

hidden link

This section

Use of setDate() action
Now let us see an example using the actions from the above table. The following example demonstrates the use of actions setDate.

<!doctype html>
<html lang = "en">
<head>
<meta charset = "utf-8">
<title>jQuery UI Datepicker functionality</title>
<link href = "hidden link"
rel = "stylesheet">
<script src = "hidden link"></script>
<script src = "hidden link"></script>

<!-- Javascript -->
<script>
$(function() {
$( "#datepicker-12" ).datepicker();
$( "#datepicker-12" ).datepicker("setDate", "10w+1");
});
</script>
</head>

<body>
<!-- HTML -->
<p>Enter Date: <input type = "text" id = "datepicker-12"></p>
</body>
</html>

A field with a date picker AND ALSO the field where I van fill in the date will do for now.

Jacques

#569620

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

Based on this you want to change the format of the dates ?

Correct?

Because our views plugin will query this as one date field.

Please let me know.
Thanks,
Shane

#569624

Shane,

We decided that the date picker can be on the form but in combination with an input from the keyboard and store as one date. can that be done?

#569632

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

Yes that can be done but it should be entered in the format mm/dd/yyyy

Thanks,
Shane

#569634

Thats ok!

#569752

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

Just checking, were you able to resolve this issue ?

Thanks,
Shane

#569770

Hi Shane,

No I still need any code to get the CRED field enabled tot fill in the date. Bij now I only can use the date picker tot fill in the date.

Jacques

#569774

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

Even though the datepicker appears you can still enter it in manually, no code is actually needed.

Thanks,
Shane

#569900
Schermafdruk 2017-09-14 09.48.36.png

Shane,

Then that's out problem! No data entry posible only choosing a date with the date picker.

Jacques

#570008

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

I believe there is something here that is causing the date field to not function correctly.

Would it be possible to temporarily disable all your non-toolset plugins and try the fields again as in my testing its possible to manually enter the date information, as well as your datepicker isn't displaying correctly.

Thanks,
Shane

#570739

Shane,

This is getting a long story. We disabled all the plugins except the Toolset Plugins. The data field doesn't work.

Jacques

#570741

I also tried all our themes (GP, BB, Astra, Genesis,....)