Read only date field

  • Profile Image
    NRCsupport
    Asked 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.

  • Profile Image
    EltonCris
    Answered 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
    ESB
    Answered 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