[Pro] CalendarView Action & Validate Action together possible?

Hi Walter!
I am very happy with the CalenderView. Great stuff! I haven’t been able to get it to work with the Validation action. In this particular case, the client wants every single field to be filled. Any idea how to go about that?

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

When you click on the CalendarView-enabled field, the value of that field will be modified by the selection made in the popup calendar. If the validator can’t pick up the absence of value in there, I am not sure what you will do – if you submit the form, does it not come through with some value?

Could you post an example on the Web somewhere? I’d like to step through this in Firebug and see what’s going on.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter!

Yes, you can see the form on http://www.shelter.nl/test/groupreservation.php
Btw, that is also the form with the ‘verifying email address’ question :wink:
As you can see, the CalendarView works perfect; it just needs to be validated when submitting the form.

Thanks!

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I imagine you could get away with simply removing the default “get here” text from the field. That will solve your validation problem, because there won’t be anything in the field if someone skips it.

I tried tabbing through the form, and the calendar didn’t pop up unless I clicked on the field. It appears as though that’s hard-coded into the calendarview function, but I think I can make that an option in the Action. If that works, then you would be able to use the form without any instructions.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I just revved the Action, you can now choose between Click and Focus for the trigger event. If you choose Focus, then Blur is automagically registered to close the calendar.

Download version 0.4 at ActionsForge and give it a try. Make the date fields empty (no click here), set the trigger to Focus and you should be able to validate this AND to have the calendar effect.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yep Walter, indeed. Just removing the ‘click here’ did the job. Why didn’t I come up with that myself? I assume, the other fields have a ‘click here’ option and that put me on the wrong path.
I assume when people want to type a number, they get the calendar; that might confuse them, so that’s why I put the words ‘click here’ there.
It would be an idea to have that solved by some additional option in the action?

Thanks!

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ok Walter, let’s see if I understand this… I download the latest one, but I am not sure if I see a difference. Yes, the option Click and Focus is added to the action, but I don’t see any difference.
You said: If you choose Focus, then Blur is automagically registered to close the calendar.

Meaning…?

You could have a look at the website. I just activated the Focus option in CalenderView.

Thanks!

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It works perfectly! Here’s what I mean. Click into any form element before the calendar field, then press Tab. As you tab into the date field, the form element’s focus event will trigger the calendar to open. If you tab out of that field, the calendar will close, revealing anything that was under it.

Naturally, if you click anywhere else on the page, the calendar will also close, and if you click on a date in the calendar, then the calendar will close after registering the new date.

So this is one of my “Yes, And” type additions to the Action.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Aaaaah!!! I got it! Indeed, it works! That is what you mean: navigating with Tab triggers the calendar! See, words like ‘focus’ I completely interpret different :slight_smile: than what you mean.
Thanks!
I just realized that the customer (who told me to make those fields) might ask me later to configure the next item ‘Number of nights’ in such way that it has to match the choices of dates in the calendar… I just hate complicated forms - I rather just design :wink:
But, I could imagine that further development (in regardless of the configurations) of the CalendarView action is endless.

Thanks again!

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options