This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Disable Calendar
Started 15 years ago by ineli | 5 posts |
-
hello everybody
please let me know, if there is a way to disable the calendar. I don't want the calendar to pop up...
thanks a lot!!
Posted 15 years ago # -
Hi,
I think you can hide calendar image button, to do so you should edit your CSS form and add these code :
#calendar_1 { display:none !important; }
where 1 is your calendar element id
MachForm Support
Posted 15 years ago # -
thank you redityo
to button is not showing, but the calender still pops up after selecting the year field...!?
Posted 15 years ago # -
That's weird. I've tested and it never pop ups after selecting the year field.
Ok, try this one instead, edit your includes/view-functions.php file, search around line 376 for this code:
<span id="calendar_{$element->id}"> <img id="cal_img_{$element->id}" class="datepicker" src="{$machform_path}images/calendar.gif" alt="Pick a date." /> </span> <script type="text/javascript"> Calendar.setup({ inputField : "element_{$element->id}_3", baseField : "element_{$element->id}", displayArea : "calendar_{$element->id}", button : "cal_img_{$element->id}", ifFormat : "%B %e, %Y", onSelect : selectDate }); </script>
remove them.
That would remove your calendar button completely.MachForm Founder
Posted 15 years ago # -
thank you!
Posted 15 years ago #
Reply
You must log in to post.