I have ask in the past How to convert Content Type Title into Term reference?. Which someone suggest to used the Title Field UI in order to remove it the title and have a Term Reference field as my title field.
However, now I run into few problems where the title field is been expected like
admin/page. So I was wondering if possible to set up the title field the same as the a term but automatically. I do not want the user re-type the field Title field, but at the same time I want to limit the user from choosing something that is not from the terms.
So how can I copy the taxonomy term that the user select and set up as title programmatically ?
My content type machine name is
job_per_template and taxonomy name is
field_job_title_template. I have take the code from the answer below and I got this error.
Integrity check for the imported configuration failed. Error message: The data type of the configured argument does not match the parameter's