0

I have a webform that uses taxonomy term fields. After form submission I'm redirecting to a custom URL with query string parameters and using tokens for the values. The page I'm redirecting to requires the term ID be used rather than the name, but none of the tokens I've used below are outputting the term ID. They all output the term name.

[webform_submission:values:taxonomy_field_element_key]
[webform_submission:values:taxonomy_field_element_key:delta]
[webform_submission:values:taxonomy_field_element_key:target_id]
[webform_submission:values:taxonomy_field_element_key:entity:id]
[webform_submission:values:taxonomy_field_element_key:entity:tid]

I'm almost positive the last one should work, but it doesn't, so I assume something is broken.

Am I missing another more obvious token? Is there a setting which I need to change on the field to output the TID instead of the name? I'm not sure what else I can do.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.