By sej123 on
HI
My webform is working perfectly fine.
How can I add a component (name) filled by the user in the confirmation message?
I want the confirmation message on one of my webform as -
Thanks <%username> for registering.
I tried adding the following code to my webform-confirmation-[nid].tpl.php,
<?php
$temp_submission = webform_menu_submission_load($sid, $node->nid);
echo "Thanks" . $temp_submission->data[1]['value'][0];?>
But this is not working.
I would appreciate any help.
Thanks!
Comments
username is my 1st
username is my 1st component.
I have really tried hard and researched a lot.
Please help me!
*_*
Are you sure
$temp_submission->data[1]['value'][0]usernameTry this
Regards.
[edit] unwated char removed.
Regards.
🪷 Beautifulmind
Hi Thanks for the
Hi Thanks for the code!
However, this is not working in my case!
Can you please provide me any guidance!
*_*
What's exactly not working?
Regards.
🪷 Beautifulmind
I have put the following code
I have put the following code in my webform-confirmation-37.tpl file -
This is not giving the desired message, not even the default Thank you message.