How to set a content type tile base on taxonomy field that user select? 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 ?

Update 1

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 &lt;em class="placeholder"&gt;value&lt;/em&gt; requirement..
Do it with rules and the title module:

{ "rules_title_taxonomy_token" : {
    "LABEL" : "title taxonomy token",
    "PLUGIN" : "reaction rule",
    "OWNER" : "rules",
    "REQUIRES" : [ "rules" ],
    "ON" : {
      "node_insert--package" : { "bundle" : "package" },
      "node_update--package" : { "bundle" : "package" }
    },
    "DO" : [
      { "data_set" : {
          "data" : [ "node:title-field" ],
          "value" : [ "node:field-my-taxonomy-field:0:name" ]
        }
      }
    ]
  }
}


Be sure to change "package" to the name of your content type and be sure to use the proper field name for your taxonomy instead of field-my-taxonomy-field.

As far as I know, the above only works with the Title module and the Title Field UI.