• Resolved LukeTacyn

    (@luketacyn)


    Hello again.

    I have a select field using an array. Is there any way I can specify to return just the value OR the label, instead of both? I guess the same thing will also be required for select fields.

    Thanks again.

Viewing 1 replies (of 1 total)
  • Plugin Author fabianlindfors

    (@fabianlindfors)

    Hi!

    My plugin currently doesn’t have full support for the select fields when included in emails as you have noticed. I’m aiming to improve field inclusions for an upcoming release.

    Until then you can use an undocumented filter to alter your output. Something like this:

    `
    function change_select_inclusion( $output, $field, $value ) {
    return $value[‘value’];
    }
    add_filter( ‘af/field/render_include/name=YOUR_FIELD_NAME’, ‘change_select_inclusion’, 10, 3 );
    `

    Hope this works!

Viewing 1 replies (of 1 total)

The topic ‘Using a select field with an array in email’ is closed to new replies.