How can i hide the minutes in the date/time field?

  • anselmamill
    Asked on April 30, 2014 at 4:45 PM

    Hi,

    I want ot only give the option of using the hour field - no minutes. How do get rid of that field?

    Any one know???!

  • Elton Support Team Lead
    Replied on April 30, 2014 at 5:44 PM

    Hi,

    That's possible with CSS inject if the date/time field is not mark as required. Is this the form in question https://www.jotform.com/41064401381140? Then I assume that this field is not set as required so injecting the following CSS codes should remove the minute field.

    select[name$="[min]"], #sublabel_minutes {

    display: none;

    }

    Result:

    How can i hide the minutes in the date/time field? Image 1 Screenshot 20

    Let us know if you need anything else. Regards!

     

  • Elton Support Team Lead
    Replied on April 30, 2014 at 5:45 PM

    By the way, here's how to inject custom CSS codes to your form. http://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes