In cases where surveys require a footer on many or all survey pages, follow the steps below.
Step 1: Create a custom footer.tx file
Surveys render content using template (.tx) files and will utilize the most local version of a file available. To add a custom footer, first expand the Structure button group and open the Survey Files applet.
Next, scroll down until you see the footer.tx file and click on it to highlight it. Lastly, click the Copy button to make a local copy of the file. A confirmation message will appear.
A new local footer.tx file will appear outside of the folders at the bottom. The name will default to "footer.tx." However, you can click Rename file button and rename the file as needed.
Step 2: Paste content into footer.tx
When you click on the new footer.tx file, a block of code will appear in the right pane. Locate the div class i-poweredby
.
Paste in the code below, editing the text and the css as needed. Note that the "include base" line should be preserved if possible. If you have questions, please contact a Support agent via our chatbot or email help@intellisurvey.com.
<div class="custom-footer" style="padding-top:2em;text-align: center;">This is a footer to the survey.</div> %% include base::footer;
Press the Save button to save your changes. After saving the file, verify that the footer appears by running your survey in testmode.
Step 3: Customize the footer
In addition to text, images or other HTML elements can be used, as well as survey elements such as settexts and variables. You can also remove the style (padding, center, etc.) as needed.
You can also customize a footer with Perl. For example, if a footer is only supposed to appear on certain pages, you can use the $page_num variable within a conditional statement to display some or all of the custom footer elements.
[* if ([% $page_num %]>=10) {qq|<div class="custom-footer" style="padding-top:2em">This is a footer to the survey that is hidden before respondent reaches page 10.</div>|} *] %% include base::footer;
If you need further customization, please contact a Support agent via our chatbot or email help@intellisurvey.com.
Comments
0 comments
Please sign in to leave a comment.