Calendar in WFB - Post ID 301675

User 2699991 Photo


Registered User
4,782 posts
Online Now

In Web form builder there is a built in date selector,, anyone got an idea how to chane the month that is displayed? actually its the year 2026 May I would like displaying as default
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://alphathemes.coffeecup.com/forms … an%281%29/
User 379556 Photo


Registered User
1,533 posts

It will of course do this if in Properties > Allow Dates one enters 05/01/2026 in the first box. That would be of use only if one didn't want to allow the choice of any date earlier than that.

Interestingly I did the above and then deleted that entry from the first box of Allow Dates. In the Preview that produced a tooltip showing the first day of May 2026, and clicking on the tooltip took one straight to that date in the date selector without preventing the selection of earlier dates.

Frank
User 379556 Photo


Registered User
1,533 posts

I was utterly baffled by the second paragraph of my last post. It seems to work only with that particular date, and I'm wondering whether others get the same result. If not, I'm wondering whether it is something to do with the Windows 11 clipboard, the fact that I'm in the UK where dates are written as dd/mm/yyyy, and that today is 26 May.

In fact it happens without ever having put a date in Properties > Allow Dates. Perhaps Wayan discovered this and decided it was about time a little entertainment was provided in these forums which have gone quiet (apart from spam posts) for a week or so.

Frank
User 2699991 Photo


Registered User
4,782 posts
Online Now

Hi Fank
I haven't got time to even think about entertaining folk, :D:D I am doing the biggest website of my whole 30 years designing & developing (should be retired sitting in the rocking chair being fed and watered by my lovely wife). Instead here I am working 18 hours a day, andwe are like ships passing in the night.

Ahh well your whole paragraph baffled me,:P:P:P:P:P:P
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://alphathemes.coffeecup.com/forms … an%281%29/
User 379556 Photo


Registered User
1,533 posts

Hi Wayan.

To reduce the bafflement I've put a 2½ minute video at https://fc7777.coffeecup.com/wfb-fc.zip .

Regards,
Frank
User 122279 Photo


Senior Advisor
14,447 posts

Ships in the night - Ahoy!

I've been following the discussion, and of course, I had to check with my sample of WFB. When I open it, and add the date picker without setting any from date (nor to date) I get today's date, May 26th 2023. Not 2026 or anything fancy like that, just today's. I think the default in the app is set to show the actual date of the day it's opened.
I tried doing like in Frank's video, setting it a couple of years in the future, and I got the same result as he did, also when it went back to today. It may be that there is something lingering in the app, keeping the date settings in the options for the date picker a tad too long. You could perhaps try to set it to some fake date and year as the last thing before you close down for tonight, and then, as the first thing tomorrow morning you open WFB again, pop in a date picker without any settings, and see if it still remembers what you did the evening before. Or maybe even just a reboot of your machine lets WFB forget past settings.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 379556 Photo


Registered User
1,533 posts

Further experimenting suggests that what I had observed is not to do with WFB but with the browser cache.

I was using the Google Chrome browser, and, even after the computer's having been switched off all night, the same tooltip and date appeared this morning. I then cleared all caches etc. and thereafter no tooltip or date appeared.

Frank
User 2699991 Photo


Registered User
4,782 posts
Online Now

Frank Cook wrote:
Further experimenting suggests that what I had observed is not to do with WFB but with the browser cache.

I was using the Google Chrome browser, and, even after the computer's having been switched off all night, the same tooltip and date appeared this morning. I then cleared all caches etc. and thereafter no tooltip or date appeared.

Frank


wel Frank thanks for trying

I can't imagine having to tell all my clients 1500 per month visitors who use the forms to reset their browser cache every time they want to complete the form
I re-opened it today and low and behold, reverted back to the old date anyway (looks like I'm going to have to use a different approach)

Thnks Frank & Inger
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://alphathemes.coffeecup.com/forms … an%281%29/
User 122279 Photo


Senior Advisor
14,447 posts

I did as I had suggested above. When opening WFB this morning and previewing with no settings, it showed May 27th 2023. My preview was in Ffx.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 187934 Photo


Senior Advisor
20,181 posts

JQuery can set it for you.
Adjust the #item1_date_1 to the id of your datepicker in Form Builder
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js"></script> <script>// ver 1
var jQ = $.noConflict(true);
jQ(function () {
jQ("#item1_date_1").attr("id","Date_Picker");
jQ("#Date_Picker").datepicker({
dateFormat: "yy-mm-dd",
minDate: new Date('2026-01-02')
});
});</script>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.