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

  • Profile Image
    anselmamill
    Asked on April 30, 2014 at 04: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???!

  • Profile Image
    EltonCris
    Answered on April 30, 2014 at 05: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:

    Let us know if you need anything else. Regards!

     

  • Profile Image
    EltonCris
    Answered on April 30, 2014 at 05: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