This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Enable Date Picker to show calendar inline


  1. rocketmedia
    Member

    I am trying to get the date picker to show the calendar above the field, instead of having to click the little calendar option to see the available dates. I would be ok if we even had to place a div above the form that just had the calendars appended to it. Any help would be greatly appreciated.

    Posted 9 years ago #
  2. yuniar

    It is possible to do this. Assuming you are using v4.1, you can edit your "includes/view-functions.php" file, search around line 1219 for this code:

    $('#element_{$element->id}_datepick').datepick({

    change it to become:

    $('#element_{$element->id}_datepick_span').datepick({

    Then search around line 1264 for this code:

    <input type="hidden" value="" name="element_{$element->id}_datepick" id="element_{$element->id}_datepick">

    below that line, add this code:

    <span id="element_{$element->id}_datepick_span" class="inlinePicker"></span>

    That should display the calendar inline, without the need to click the calendar icon.


    MachForm Founder

    Posted 9 years ago #
  3. Czarinadudgeon
    Member

    If I make this change, I will need to do it again after future updates, correct?

    Posted 8 years ago #
  4. yuniar

    Yes, I'm afraid you'll need to do it again.


    MachForm Founder

    Posted 8 years ago #
  5. Czarinadudgeon
    Member

    Thank you!

    Posted 8 years ago #

RSS feed for this topic

Reply