- Issue created by @dianacastillo
I created a form like this and it successfully sets the various emails into the configuration file, but when i try to set the default value it, gets an array back. how do i set the default value for this multivalue field?
$form['comment']['comment_admin_notify_mailto'] = array(
'#type' => 'multivalue',
'#title' => $this->t('Comments Topics And Post Approvers'),
'#cardinality' => MultiValue::CARDINALITY_UNLIMITED,
'comment_admin_notify_mailto' => [
'#type' => 'textfield',
'#title' => $this->t('Person to send notifications for Comments, Topics and Posts'),
'#default_value' => vista_moderation_admin_notify_variable_get_site_email(),
],
);
Active
2.0
Documentation