With the select2 widget the #default_value' is an array so try with $form['field_name']['widget']['#default_value'] = [12];. It will work!
確定! 回上一頁