What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Read only date field

    Asked by NRCsupport on February 25, 2014 at 02:06 AM

    Is there any way to have a field on the form which is preloaded with today's date, and which is read only?

    W have a field which is supposed to contain the current date, and which should not be altered by the user.

    The standard date/time field does not have a readonly attribute.

    date field read only date
  • Profile Image
    JotForm Support

    Answered by EltonCris on February 25, 2014 at 03:24 AM

    Hi there!

    You're much right, it is not possible to set the grouped date/time fields as readonly as of the moment. I will create a request ticket about this. A workaround for now is to cover the date field with a transparent box by injecting custom CSS codes to your form. Would you prefer this one? If yes, let us know the form URL so we can assist you further. You can also take your form source code and modify it in any way you want.

    Thanks!

  • Profile Image

    Answered by ESB on June 16, 2016 at 09:00 PM

    Hi, I solved it like this:

    #day_62, #month_62, #year_62, #hour_62, #min_62,
    #input_64,
    #input_63,
    #input_65,
    #day_66, #month_66, #year_66, #hour_66, #min_66,
    #input_67 {
    pointer-events: none;
    }

    All the best, Jimmi