This value is not valid, when using multipe:true

This value is not valid, when using multipe:true

ehardingeharding Posts: 15Questions: 7Answers: 0

If I select more then one value from this this select i get This value is not valid

{
                label: "CIG Primary: *",
                name: "apd_history.author_name",
                type: "select",
                multiple: true,
                def: "<?php echo $author_name;?>"           
}

select one value works fine

Answers

  • allanallan Posts: 63,852Questions: 1Answers: 10,519 Site admin

    The validation error will be coming from the server. What code are you using on the server-side for the validation of this field?

    Allan

  • ehardingeharding Posts: 15Questions: 7Answers: 0

    thanks, commenting out the validator line fixed it.

            Field::inst( 'apd_history.author_name' )
                ->options( 'apd_users', 'username', 'full_name' ),
    //          ->validator( 'Validate::dbValues' ),
                Field::inst( 'apd_users.full_name' ),
    
This discussion has been closed.