Need help with datepicker range

skhn123 31 Oct, 2013
Hello,๐Ÿ˜€

first i would like to thank. chronoform is really good. ๐Ÿ˜€

and all i need to know that i was searching through forums and faqs and i found this :
http://www.chronoengine.com/faqs/3223-how-can-i-set-start-and-end-dates-for-a-datepicker.html

but i dont know how to use this because i dont know much programming. so in this faq it say that it is possible to set a date range to select only between them.๐Ÿคจ

var start_date = new Date ('2013-06-21');
var end_date = new Date('2013-12-24');

but i dont know how this work. i copy-paste this code in load-js action which i added above show html in on-load section but it dont work and i know i made a mistake but what it is. ๐Ÿคจ

and i also want to know if it is possible to display the age (year, month, day) calculated from the date user choose (in DOB field) to a prefixed date.
you can see the image.
Thanks.๐Ÿ™‚
and sorry for bad English ๐Ÿ˜Ÿ
skhn123 31 Oct, 2013
or perhaps it could put the calculate result (age) in a single field labeled as current age instead of putting it separately in year's, month's, day's fields
GreyHead 31 Oct, 2013
Hi skhn123,

Yes, all of that is possible but you'll probably need help from someone with some coding experience.

Bob
skhn123 01 Nov, 2013
Thanks bob for reply!๐Ÿ™‚

i have something else to ask.
i was surfing through faqs and i found this: http://www.chronoengine.com/faqs/2670-how-can-i-add-a-confirmation-page-to-my-form.html and this faq is really helpful and it working too.

But some how i ran into a problem which is, I have default captcha enable for form and when i submit the form it display confirmation as usual but when i proceed next it sent me back to form saying captcha input is wrong.

and one more thing is, how can i display uploaded image file in thank you page and email template. instead of just sending it as attachment. i know how to send uploaded files to email as email attachment.
GreyHead 01 Nov, 2013
Hi skhn123,

Please see this FAQ about re-checking the Captcha.

If you add a debugger action to your form on Submit event temporarily you will see that the Upload Files action builds a URL for the uploaded image.

You can use this in the Thank You Page code or email template with a normal <img> tag. But note that many email readers will not display images by default and that images are not embedded so an internet connection is needed to see them.

Bob
skhn123 02 Nov, 2013
Thanks Bob i solve the image problem with the faq i found.๐Ÿ™‚

i have implemented these function so far reading your faqs:๐Ÿ˜€
1: print button :wink:
2: confirmation Page :wink:
3: unique id :wink:
4: image display :wink:

but there are some required function which i am unable to implement:๐Ÿ˜Ÿ

1: date range : http://www.chronoengine.com/faqs/3161-how-can-i-select-a-range-of-dates-part-2.html
how can i just fixed the end date so all the user has to select the start date only and the length of stay will be generated.

2: bypassing the captcha (no luck)
and i try this : http://www.chronoengine.com/faqs/4739-how-can-i-bypass-a-captcha-or-anti-spam-check.html
but that captcha problem is still there. i have removed captcha and event switcher for now to test some other actions.

also the refresh problem is happening with me due to confirmation page and i read about it in this topic http://www.chronoengine.com/forums.html?cont=posts&f=2&t=91682&p=318553&hilit=refresh#p318553 but i guess its not working with me. any idea.???๐Ÿคจ
GreyHead 07 Nov, 2013
Hi skhn123,

Please start separate threads for different issues and be sure to post exactly what the problem is and what you have done so far. It's is never useful to say just that 'it doesn't work' :-(

how can i just fixed the end date so all the user has to select the start date only and the length of stay will be generated.

I'm sorry but I have no idea what you need to do here? It just doesn't make sense to me :-(

Bob
skhn123 08 Nov, 2013
Sorry Bob!
i will keep in mind next time for sure.

OK..so i will drop the others issues, lets just stick to datepicker which I've created this topic for.

how can i just fixed the end date so all the user has to select the start date only and the length of stay will be generated.



i mean to say in this tutorial : http://www.chronoengine.com/faqs/3161-how-can-i-select-a-range-of-dates-part-2.html
it shows how to add date range to datepicker and its has start date and end date and length of stay. so my question is how can i add a predefined date for end date.
eg: instead of choosing end date it will be a fixed value from admin side in form. all the user have to select only the start date. and the length of stay field will generate from start date to end date (already defined by admin).

help me if you got this now.
Thanks Bob.
GreyHead 10 Nov, 2013
Hi skhn123,

You don't say how you are going to set the end date or where you want to do the calculation.

The easiest way would be to use PHP in a Custom Code action after the form is submitted.

Bob
This topic is locked and no more replies can be posted.