Custom Fields
Re-Envisioned
Support General datetime field error

This topic contains 2 replies, has 2 voices, and was last updated by  candorem 1 month, 3 weeks ago.

  • Creator
    Topic
  • #15722
    Resolved
    candorem
    Participant

    Uncaught ReferenceError: _ is not defined
    at datetime.js:78

    } )( jQuery, _, rwmb, RWMB_Datetime );

    That is the error I receive and the date picker doesn’t show up.

    The field is being used on a settings page which I created using your MB settings page plugin. Here is the code creating the meta field:

    $meta_boxes[] = array(
    ‘id’ => ‘event-info’,
    ‘title’ => ‘Event Information’,
    ‘settings_pages’ => ‘event-site-settings’,
    ‘fields’ => array(
    array(
    ‘name’ => ‘Event Date’,
    ‘id’ => ‘event_date’,
    ‘type’ => ‘datetime’,
    ‘js_options’ => array(
    ‘stepMinute’ => 15,
    ‘showTimepicker’ => true,
    ‘controlType’ => ‘select’,
    ‘showButtonPanel’ => false,
    ‘oneLine’ => true,
    ‘dateFormat’ => ‘mm-dd-yy’,
    ‘timeFormat’ => ‘hh:mm tt’,
    ),
    ‘inline’ => false,
    ),
    ),
    );

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #15726

    Anh Tran
    Keymaster

    Hi, this bug is fixed here. New version of Meta Box will come next week.

    #15758

    candorem
    Participant

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.