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

  1. ineli

    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 11 years ago #
  2. redityo


    I think you can hide calendar image button, to do so you should edit your CSS form and add these code :

    display:none !important;

    where 1 is your calendar element id

    MachForm Support

    Posted 11 years ago #
  3. ineli

    thank you redityo

    to button is not showing, but the calender still pops up after selecting the year field...!?

    Posted 11 years ago #
  4. yuniar

    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." />
    <script type="text/javascript">
    	inputField	 : "element_{$element->id}_3",
    	baseField    : "element_{$element->id}",
    	displayArea  : "calendar_{$element->id}",
    	button		 : "cal_img_{$element->id}",
    	ifFormat	 : "%B %e, %Y",
    	onSelect	 : selectDate

    remove them.
    That would remove your calendar button completely.

    MachForm Founder

    Posted 11 years ago #
  5. ineli

    thank you!

    Posted 11 years ago #

RSS feed for this topic