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
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.
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
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
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
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?
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
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Jacques,
Just checking, were you able to resolve this issue ?
Thanks,
Shane
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
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
Shane,
Then that's out problem! No data entry posible only choosing a date with the date picker.
Jacques
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
Shane,
This is getting a long story. We disabled all the plugins except the Toolset Plugins. The data field doesn't work.
Jacques
I also tried all our themes (GP, BB, Astra, Genesis,....)