Score:-1

emailing the webform's submission values in a table

ph flag

I have been trying to email the submitted values via email handler every time an user submit a form. I have added on custom body so the submitted values would be in the table formally, but the table is all broken as you can see on the photo. Is there a way to fix the problem? Thank you in advance

Here is what I added on the custom body:

    <table>
    <tr>
        <th>Description</th>
        <th>Account Number</th>
        <th>Current Budget</th>
        <th>New Budget</th>
        <th>Budget Change +/-</th>
    </tr>
    <tr>
        <td>
            [webform_submission:values:budget_change_request_form_01_description]
        </td>
        <td>
            [webform_submission:values:acct_]
        </td>
        <td>
            [webform_submission:values: budget_change_request_form_01_current_budget]
        </td>
        <td>
            [webform_submission:values: budget_change_request_form_01_new_budget]
        </td>
        <td>
            [webform_submission:values:budget_change_request_form_01_budget_change_]
        </td>
    </tr>
</table>

And this is the output of my e-mail

enter image description here

leymannx avatar
ne flag
Multiple typos (spaces) in the tokens and mustn't it be `[submission:values:...` instead of `[webform_submission:values:...`?
leymannx avatar
ne flag
Ah no, it's just the spaces. See, every values that comes malformed has a space in the token.
Score:1
ph flag

It looks like you have spaces in your tokens. Removing those should fix the problem, e.g. this:

[webform_submission:values: budget_change_request_form_01_current_budget]  

should be:

[webform_submission:values:budget_change_request_form_01_current_budget]  
user888 avatar
ph flag
Wow, what a silly mistake of mine, thanks! However, the table still does not add the borders even after I added in custom css code, or custom body. Would you be able to help with this too?
user888 avatar
ph flag
Never mind! I think it's because of Outlook I am using that doesn't support fancy e-mails.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.