Drupal Answers Asked by Samay on January 31, 2021
I am trying to figure out from where [webform_submission:values] gets rendered. This is how it looks right now in the email submission.
Label 1
Value 1
Label 2
Value 2
I want this in a table format. Is there a possibility to change the render code to do this?
You can use the Webform tokens from submitted data as following guide:
[webform_submission:values:?]
Omit the '?' to output all values. Output all values as HTML using [webform_submission:values:html]. To output individual elements, replace the '?' with…
element_key
element_key:format
element_key:raw
element_key:format:items
element_key:delta
element_key:sub_element_key
element_key:delta:sub_element_key
element_key:sub_element_key:format
element_key:delta:sub_element_key:format
element_key:delta:format
element_key:delta:format:html
element_key:entity:*
element_key:delta:entity:*
element_key:delta:entity:field_name:*
element_key:sub_element_key:entity:*
element_key:sub_element_key:entity:field_name:*
element_key:delta:sub_element_key:entity:*
element_key:checked:option_value
element_key:selected:option_value
For example, to display the Contact webform's 'Subject' element's value you would use the [webform_submission:values:subject] token.
Then you can use your custom style by adding them into table or list
Answered by mr.Thi on January 31, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP