Hi,
I need a calendar to add a astrology site form. Current calendar is very good but when we going to add a birth day It's not user friendly.
Pls advice.
Tks
Hush
I need a calendar to add a astrology site form. Current calendar is very good but when we going to add a birth day It's not user friendly.
Pls advice.
Tks
Hush
Hi Hush,
What's the problem with it?
Is it just that it takes too long to go back sixty years?
Bob
What's the problem with it?
Is it just that it takes too long to go back sixty years?
Bob
Hi Hush,
you may check if the joomla default calendar is easier ? I'm not sure!
Max
you may check if the joomla default calendar is easier ? I'm not sure!
Max
Hi Max,
That's grate. But can u pls advice me how to add this to my forms.
And I have a another question. I have to make around 12 forms in my site and after finished this I'm planing to subscribe for your link removal.
Still I'm waiting to solve this calender issue. Cause this is for astrology site. Very difficult to select my birthday 🤣
Hope I can get a good solution from your end.
Rgds
Hush
That's grate. But can u pls advice me how to add this to my forms.
And I have a another question. I have to make around 12 forms in my site and after finished this I'm planing to subscribe for your link removal.
Still I'm waiting to solve this calender issue. Cause this is for astrology site. Very difficult to select my birthday 🤣
Hope I can get a good solution from your end.
Rgds
Hush
Hi Hush,
Here's a code snippet that uses the standard Joomla calendar and sets the default date back 16 years. I don't know if this helps or not.
You could also use some JavaScript to have a first field for the year of birth, then pre-set the calendar to that year for the selection of the day and month.
Bob
Here's a code snippet that uses the standard Joomla calendar and sets the default date back 16 years. I don't know if this helps or not.
<div class='required'>
<label for='dob' class='labelInput required' >Date of birth</label>
<?php
JHTML::_('behavior.calendar');
if ( !$client->dob ) {
$client->dob = date('d-m-Y', mktime(0, 0, 0, date('m'), date('d'), date('Y')-16 ));
}
echo JHTML::_('calendar', $client->dob, 'dob', 'dob', '%d-%m-%Y', 'style="width:120px;"')."Â dd-mm-yyyy";
?>
</div>
You could also use some JavaScript to have a first field for the year of birth, then pre-set the calendar to that year for the selection of the day and month.
Bob
Hi Bob,
Thank you very much for your grate support. I tried and this is very good.
But it's not recoded in email. 😢
I don't no what to do? Pls advice.
Rgds
Harsha
Thank you very much for your grate support. I tried and this is very good.
But it's not recoded in email. 😢
I don't no what to do? Pls advice.
Rgds
Harsha
Hi Hush,
Have you added {dob} to the email template?
Please post a copy of this part of the tmeplate so that we can see what's there.
Bob
Have you added {dob} to the email template?
Please post a copy of this part of the tmeplate so that we can see what's there.
Bob
Hi Bob,
Thank you so much for your grate support. I'm really appreciate it.
I never thought I can get a this kind of support in this forum. It's really impressive.
After adding the code to emails templates date was recoded.
But still I couldn't get the real calender.
This is the code.
Tks & Rgds
Hush
Thank you so much for your grate support. I'm really appreciate it.
I never thought I can get a this kind of support in this forum. It's really impressive.
After adding the code to emails templates date was recoded.
But still I couldn't get the real calender.
This is the code.
<div class="form_item"><div class="form_element cf_heading"><h1 id="" class="cf_text">Health / Medical Astrology</h1></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_text"><span class="cf_text">Complete report of your medical and health conditions and vulnerability against specific diseases. It will give you a general outlook of your health.</span></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">First Name</label><input class="cf_inputbox required" maxlength="150" size="30" id="text_2" name="text_2" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Last Name</label><input class="cf_inputbox required" maxlength="150" size="30" id="text_3" name="text_3" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Birth Date</label><?php
JHTML::_('behavior.calendar');
if ( !$client->dob ) {
$client->dob = date('d-m-Y', mktime(0, 0, 0, date('m'), date('d'), date('Y')-16 ));
}
echo JHTML::_('calendar', $client->dob, 'dob', 'dob', '%d-%m-%Y', 'style="width:120px;"')."Â dd-mm-yyyy";
?>
</div><div class="clear">Â </div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Birth Time</label><input class="cf_inputbox required" maxlength="5" size="5" id="text_5" name="text_5" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_radiobutton"><label class="cf_label">AM / PM</label><div class="float_left"><input value="AM" class="radio validate-one-required" id="AM0" name="radio0" type="radio"><label for="AM0" class="radio_label">AM</label><br><input value="PM" class="radio" id="PM0" name="radio0" type="radio"><label for="PM0" class="radio_label">PM</label><br></div></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_dropdown"><label class="cf_label">Male / Female</label><select class="cf_inputbox validate-selection" id="select_9" size="1" name="select_9"><option value="Select">Select</option><option value="Male">Male</option><option value="Female">Female</option></select></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Birth City</label><input class="cf_inputbox required" maxlength="150" size="30" id="text_10" name="text_10" type="text"><a onclick="return false;" class="tooltiplink"><img src="components/com_chronocontact/css/images/tooltip.png" class="tooltipimg" border="0" width="16" height="16"></a><div class="tooltipdiv">Birth City :: This is important as the reading will depend on your birth place.</div></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Birth Country</label><input class="cf_inputbox required" maxlength="150" size="30" id="text_11" name="text_11" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Religious</label><input class="cf_inputbox required" maxlength="150" size="30" id="text_12" name="text_12" type="text"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_textarea"><label class="cf_label">Special Notes</label><textarea class="cf_inputbox" rows="3" id="text_13" cols="30" name="text_13"></textarea><a onclick="return false;" class="tooltiplink"><img src="components/com_chronocontact/css/images/tooltip.png" class="tooltipimg" border="0" width="16" height="16"></a><div class="tooltipdiv">Special Notes :: If you have specific questions to ask please specify them in this box.</div></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_captcha"><label class="cf_label">Image Verification</label><span>{imageverification}</span></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_button"><input value="Submit" name="undefined" type="submit"></div><div class="clear">Â </div></div>
Tks & Rgds
Hush
Hi Hush,
This looks like Form HTML, not code from the email template. Is {dob} in the email template?
Bob
This looks like Form HTML, not code from the email template. Is {dob} in the email template?
Bob
Hi BOB,
Yes I Added. But my calendar not working like joomla default calendar.
This is my link http://horoscope.lankanest.com/index.php?option=com_chronocontact&chronoformname=HealthAstrology
Rgd
Hush
Yes I Added. But my calendar not working like joomla default calendar.
Health / Medical Astrology
Complete report of your medical and health conditions and vulnerability against specific diseases. It will give you a general outlook of your health.
First Name{text_2}
Last Name{text_3}
Birth Date{dob}
Birth Time{text_5}
AM / PM
{radio0}AM
{radio0}PM
Male / Female{select_9}
Birth City{text_10}
Birth City :: This is important as the reading will depend on your birth place.
Birth Country{text_11}
Religious{text_12}
Special Notes{text_13}
Special Notes :: If you have specific questions to ask please specify them in this box.
This is my link http://horoscope.lankanest.com/index.php?option=com_chronocontact&chronoformname=HealthAstrology
Rgd
Hush
Hi Hush,
which chronoforms version do you have ? if its V3.0 then it may not work yes, but there is a workaround, add a hidden field with the name "dob" at the top of the form code in the HTML code box!
Cheers
Max
which chronoforms version do you have ? if its V3.0 then it may not work yes, but there is a workaround, add a hidden field with the name "dob" at the top of the form code in the HTML code box!
Cheers
Max
Hi Max,
My current version is 3.0. How do I do that? Pls advice.
Tks & Rgds
Hush
My current version is 3.0. How do I do that? Pls advice.
Tks & Rgds
Hush
Hi Hush,
hidden field example:
Max
add a hidden field with the name "dob" at the top of the form code in the HTML code box!
hidden field example:
<input type="hidden" name="dob">
Max
This topic is locked and no more replies can be posted.