Hi,
I am using Cronoforms4.
I don't know if this bug or a feature missing.
While using wizard either in Easy or Advanced mode. When I edit "Datetime Box". The check box option should be replaced with radio buttons instead check boxes. I want to have "Date only" option available. I don't want time on my form. So there should be a check box if we want to have a a "Picker" with the option "Yes" and "No". If enabled, the Radio Button options enables with the options "Date & Time" "Date Only" and "Time Only".
And in the validtion tab again in "Datetime Box". The are two checkbox option with with the headings "Required (check both)" and "Required (check both)". Where this should be only(if we want validation to be applied on the field) *Required.
Please tell me how can I have date picker only.
Thanks
Hi codeslayer,
I'm not quite clear what your question is here.
If you don't want the Time Picker then leave those boxes unchecked.
If you want the DatePicker required then check both Required boxes (I agree that this is a bit odd).
If you want to customise the formatiing of the DatePicker then use the Custom DatePicker action in the Utilities Group.
Bob
Thank for the reply Bob.
If I select "Enable Time picker" in "Datetime Box". The dsate is displayed just as I want ie. 20-08-2011 16:11:3 (but ofcourse without time). But If I unchecked both the check boxes in Datetime Box edit window. I get the 2011-08-20 in the form.
To solve this, I did what you said I switched to Advanced Wizard mode and dragged from Actions > Custom Date Picker > to OnLoad Event > Edit > the Date format shown is already set to d-m-Y H:i:s. But I am still getting 2011-08-20.
What should I do?
Hi codeslayer,
Have you matched classes between the DatePicker element and the Custom DatePicker action? I'd use a new class like my_datepicker in both places.
Bob
Still no success.
I am attaching the c4bak file for your reference.
[attachment=0]CFV4_FormsBackup_ON__20_Aug_2011_10_39_03.zip[/attachment]
Hi,
I just dragged a datetime box from the left side, and without any configuration, I saved my form, viewed it, and when I select a date it shows me for example: 2011-08-20 inside the text box, now where is the time ?
Unless you enable the time picker option there will be no timing choice.
I agree that the settings fields may be changed a little bit to make it easier.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
I dont want the time to be displayed at all. for which I did as GreyHead suggested I unchecked both options in the edit. The date picker is giving option to select date only, just as I wanted. The problem is that, I just want the date formating to be ddmmyyyy not yyyymmdd.
Thanks
Hi Max & Codeslayer,
It looks like there may be a bug here - though not one I'd noticed before.
Adding a new class to the DatePicker element doesn't remove the cf_datepicker class and as the JavaScript for that is still loading it takes precendence over the Custom Datepicker settings. Removing the class from the Form HTML on the General tab does the trick but shouldn't be needed.
I'm sure that I've had this working before so I may be missing something :-(
Bob
Hi Bob,
Well, that may be the case yes!
@codeslayer, Whats the order of your actions in the "on Load" event ? "Show HTML" is above or below the "Custom Datepicker" action ? please switch the order (I believe that the custom datepicker should be below the show html so that the new date picker settings override the ones loaded by default)
let me know!
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
I have tried with both settings i.e putting Custom Datepicker above show html and below show html. But it didn't worked still giving yyyymmdd format.
Regards
Hassan
Hi Hassan,
Please contact me through the contact us page to get the new version and test this, there is some new feature which may help.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
I have just installed Chronoforms V4 RC20 without uninstalling my existing Chronoforms V4 RC1.9.
I have created a new test form named it testForm with folowing elements and settings.
testForm (created in new V4 RC20)
One type field (left settings to default)
One Date Picker (Field Name: fn_date, Field Id: fid_date, Field Class: my_datepicker1)
∟ In Advanced Wizard Mode > Actions > Utilities > dragged Custom Datepicker onto OnLoad Event (in Edit window I have changed, Field Class: my_datepicker, Date format posted: d-m-Y H:i:s and lastly changed Load Time picker ?: No)
One Submit button (With default settings)
When I run the form on front end. Upon date selection, I am getting DD-MM-YYYY + my current system time.
Now, even though I have chnaged in the last setting to to show time picker (which its not showing but still its taking my computer's time and displaying it. This a new bug I guess. 🤔
Old form created in Chronoform V4 RC1.9
This is still showing with exectly same settings as above. I am getting YYYY-MM-DD date format.
If the both forms are using same engine after update, why are they displaying different behaviour ?
Regards,
Hassan
Hi Hassan,
I have just tested this, here is my scenario:
1- A new form with 1 date picker field, time picker disabled for that field (default), tested the form, the date picker works fine and the date format selected is YYYY-MM-DD and there is NO time picker selection or output > OK
e.g: 2011-08-30
2- Added a new custom date picker action AFTER the show html, configured it to use class "my_datetime", enabled the time picker, added the new class to the date picker field I have created earlier, now when testing, I'm getting the SAME results as #1, e.g: 2011-08-30
3- switched the order of the 2 actions, now the custom datepicker action is BEFORE the show html (above it), testing results in a date format : DD-MM-YYYY and time picker enabled,
e.g: 31-08-2011 23:24!
I wish this clarifies this point, if you have any comments then please let me know!🙂
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
Thank you for your reply.
My results as per your scenario:
1- Checked + Confirmed
2- Checked + Confirmed
3- Checked + Confirmed
BUT
I want date to be displayed as DD-MM-YYYY only!. e.g: 31-08-2011. I dont want time to be displayed..
Regards
Hassan
Hi Hassan,
Just make sure the "Time picker" is disabled in the "Custom datepicker" action and change the date format "shown" to "d-m-Y"
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
In addition to your suggestion. I also removed H:i:s from Date format shown.
And it worked !
I feel so stupid 😶
Thanks a million Max and Bob for your time and excellent support. lightbulb
Regards
Hassan