- cathalfarrellAsked on June 13, 2012 at 11:50 PM
- JotForm SupportabajanAnswered 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.
- JotForm SupportabajanAnswered 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?
- cathalfarrellAnswered on June 14, 2012 at 01:05 AM
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!
- JotForm SupportidarktechAnswered 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.
Hope this contributes a bit to this topic. Do let us know if you have more questions. Thank you!
- cathalfarrellAnswered on June 14, 2012 at 03:57 AM
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.
- JotForm SupportidarktechAnswered 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.
- JotForm SupportabajanAnswered on June 14, 2012 at 07:39 AM
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.