Custom HTML tables are easy to implement in your survey source code. Question piping is often used in conjunction with HTML to specify the placement of checkboxes and radio buttons.
Tag(s)
|
Description
|
---|---|
html: <<END Custom HTML here END |
Use this tag to wrap a here doc around free standing HTML. |
__Qn__ | This reference provides a way to place a question in any location on the page, including within a custom HTML table. |
Tip! Use Chrome's element inspector to start a custom HTML table.
- Build a working table.
- Right-click on the table header row: select Inspect Element.
- In the inspector, click the header row, compress and copy the entire row.
- In your text editor, search and replace "><" with ">^p<" (in UltraEdit, "^p" inserts line breaks).
- Trim out id tags to clean html; set widths in html, not on table.
- Don't forget to account for rotation (Perl) and error messaging ($QXERR.msg).
HTML input table
Use the question piping double underscore variable reference, __Qn__, to specify the location a question is placed on the page.
Example
In this example, HTML is used to create a table, with question piping to insert text fields in each table cell. The HTML table is wrapped in a heredoc so that the software knows to treat it as HTML and not survey text. The text fields themselves are defined below the table as text questions; the question piping dictates where the text questions appear on the survey page.
Comments
0 comments
Please sign in to leave a comment.