I am using webform 2 pdf module, where I am trying to set up a custom content to the pdf file.
I would like to acces the webform submission data, but I have no idea how to do it. Basically I would like to access them and use them as tokens.
I am on a basic level with both drupal and php, which means I have limits.
//simple first section
<h1 align="center" style="font-family:verdana;" style="font-size:14;"><b>Registration<b></h1><br>
<p style="text-align:left; font-family:verdana; font-size:12;" ><b>1. Registered Data:</b></p>
<p style="text-align:left; font-family:verdana; font-weight: normal; font-size:12;" >[submission:values:personal_info:key]</p>
<p style="text-align:left; font-family:verdana; font-size:12;" ><b>2. Declaration:</b></p>
// there comes the non-working php part
<p><?php
$var=($fields["institutuonal info"]);
if ($var == "spec_inst") {
echo "some juristic stuff";
}
?></p>
So I am trying to export webform submission results to PDF, but the result depends on the submission content.