I have a site where I have a taxonomy term. I want to set a default value to the term name and display it when the form loads.
hook_form_alter(), I tried to set the default value to Check term name in the form. The form loads with this value, but even after changing the value in the text field, the form gets submitted with Check term name.
This is the code I am using to set the default value.
$form['name']['widget']['value']['#value'] = 'check term name';
How do I set the default value?