• Resolved digitaldavid

    (@digitaldavid)


    Hi,

    I’d like to set a max lenght for my thextarea, I see this code:

    add_filter( ‘caldera_forms_field_attributes’, function( $attrs, $field, $form ){
    if( ‘fld_456’ === $field[ ‘ID’ ] && ‘number’ === Caldera_Forms_Field_Util::get_type( $field, $form ) ){
    $attrs[ ‘max’ ] = 75;
    }
    return $attrs;
    }, 20, 3 );

    But where do I have to put it?

    Many thanks.

    Davide

Viewing 1 replies (of 1 total)
  • Plugin Author Josh Pollock

    (@shelob9)

    Thanks for using Caldera Forms. On the page for that filter, at the bottom is a section that has links to a few articles I’ve written that answer that question and introduce WordPress hooks.

Viewing 1 replies (of 1 total)
  • The topic ‘text area max lenght’ is closed to new replies.