We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38021
    • 7 Posts
    field1 and field2 are textfield, field3 is a checkboxes field:

    $hook->setValue('field1','[email protected]');
    $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?