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

    can I add a static date

    Asked by cathalfarrell on June 13, 2012 at 11:50 PM
  • Profile Image
    JotForm Support

    Answered by abajan on June 14, 2012 at 12:34 AM

    When you say a static date, do you mean a date that cannot be changed by the user? Please elaborate.

  • Profile Image
    JotForm Support

    Answered by abajan on June 14, 2012 at 12:46 AM

    Never mind. After viewing your form, I think that's exactly what you mean. It would require getting a copy of the form's full source, embedding it into a web page and adding readonly attributes to each input element of the date field. It would also make sense to hide the little calender icon (via injected CSS) that picks dates since it would be unnecessary and probably confusing to the user.

    Would taking that route be a viable option?

  • Profile Image

    Answered by cathalfarrell on June 14, 2012 at 01:05 AM

    Hi Abajan,

    Thank you for answerting my question so quickly, and yes you were right, I did mean a date that cannot be edited by the user.

    I am familar with editing the source as I was hoping to embed the form into a page on our website but making atributes readonly would be something new to me.  Thank you for the link explaining  'readonly' attributes, I will have a read and try implementing into the source code.

    Your suggesting of removing the calander icon too is very helpful tahnk you, I hadn't thought of that at this stage.  Again, injected CSS is somethign I do know about but I wouldn't be skilled enough to write the code for this myself, I am a bit of a newbee.  But I will certainly read up on CSS and give it a go.

    Thank you for all your help!

    Cathal

  • Profile Image
    JotForm Support

    Answered by idarktech on June 14, 2012 at 03:22 AM

    Glad to hear my colleague's suggestion helps. Let me also help you with the css, if you are working on this form: http://www.jotform.me/form/21638441261449 then may use this css code to remove the calendar icon.

    #input_5_pick{

    display:none;

    }

    Hope this contributes a bit to this topic.  Do let us know if you have more questions. Thank you!

  • Profile Image

    Answered by cathalfarrell on June 14, 2012 at 03:57 AM

    Hi IDarkTech

    Thanks for you help, is it not possible to simple remove the line:

    <img alt="Pick a Date" id="input_5_pick" src="images/calendar.png" align="absmiddle" />

    or does this have some adverse affect I'm not aware of?

    Really appreciate your help.

    Cathal

  • Profile Image
    JotForm Support

    Answered by idarktech on June 14, 2012 at 04:10 AM

    Great, you can also do that. That's possible since you are using your form's source code. 

    :)

  • Profile Image
    JotForm Support

    Answered by abajan on June 14, 2012 at 07:39 AM

    Hi Cathal

    After pasting the form's source into your page and removing the calender icon, insert the readonly attributes into the same div (division) from which you removed the icon, as shown here.

    If you experience difficulties with anything (and I mean anything, even if it sounds like it's something that would be too simple to ask about) please let us know. We want clients to get the most out of our product.


    Wayne