Hi.
How can I remove of the option to chose am/pm on the time field?
In Denmark we do not use this option.
Thanks
Vayu
Hi.
How can I remove of the option to chose am/pm on the time field?
In Denmark we do not use this option.
Thanks
Vayu
Currently the only way to remove that option would be to use CSS to set it to display: none so it doesn't appear. There is no option to remove it right now. We do plan on adding another time field option in the future that would use 24 hour time instead of am/pm.
Alright, thanks Carl for quick support!
I'm having the same issue, where in the CSS file should you change the display: none?
Don't change anything in the plugin CSS file, just add this to the end of your theme stylesheet.
#gform_wrapper_1 div.gfield_time_ampm {display:none}
just replace the "_1" in the example above with your actual form ID.
Thanks Kevin, that worked, is it also possible to do this for all my forms at once?
Sure, if you want it to apply to all the forms, you would just change the first form id to the generic class. You can replace the first snippet with this one.
.gform_wrapper div.gfield_time_ampm {display:none}
Does that solve your problem hbv ?
You still can't specify an hour larger than 12 can you ?
For example 15:30 is not possible it it ?
--
Erwan
This is indeed still a problem, I took a look in the .php and saw the following:
<select id="gform_schedule_start_hour">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
I don't know if it is smart to change it in the grafity form files tough? Is there another way to change it to 24 hour time table?
This is the last problem before everything works:) How can I tell Gravityform that it has to accepts past "12"? It has to work for all forms.
Yep, I agree !
That's the last thing we need to know !
Place this snippet in your theme's functions.php file and let me know if it does the trick:
Worked like a charm, thanks alot! Think I got it all fixed now that should be fixed:). Thanks for all the support
One more thing, is it possible to get the AM and PM out of the notification e-mail.
You rock guy it worked : )
"is it possible to get the AM and PM out of the notification e-mail"
Yep definitely interested too.
Erwan
This code (http://pastie.org/1253132) is actually not working properly.
This line is causing trouble :
if(empty($hour) && empty($minute))
break;
In fact this statement is true each time the user enters a time greater than 12 in the hour field.
Problem : that means it is possible to enter times such as 25:35 with no trouble at all !!!
Any idea how to fix that ?
Erwan
hvb did yo manage to get around that ?
--
Erwan
Hey guys I'd appreciate an answer !
Is there anything you need me to specify ?
If there is no solution to the problem I'd appreciate that you say so.
No offense meant,
Thanks
--
Erwan
I am not sure I understand your exact problem. However, after looking at the code above, I found a small mistake in it. Try the following and see if it works for you.
http://pastie.org/1288141
That was it thanks !
Here is my code there were a few other problems with yours :
http://pastie.org/1293542
Great Job Alex
--
Erwan
Hi.
This is not working for me at all.
Is this still relevant for current Gravity version 1.5.2.1?
Vayu
We will be updating the Time Field in Gravity Forms 1.5.3 to support a 24 hour time format that will remove the AM/PM fields and accept time input in a 24 hour format rather than a 12 hour format.