On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • field1 and field2 are textfield, field3 is a checkboxes field:

    $hook->setValue('field1','john@email.net');
    $hook->setValue('field2','John Doe');
    $hook->setValue('field3','music||films||books');
    return true;

    It does not set checkboxes for field3.

    Also tried with:
    $hook->setValue('field12',json_encode(array('music','films','books')));

    Anybody has managed to pass dynamic values to checkboxes?