utsi wrote:
I'm assuming whenever array filter or array filter exclusion is used a hidden field is created to pass the value between pages. If that is the case, may I know in which function are those hidden fields created so that I can change their 'type' attribute?
What I'm looking for is to show those fields in the question page during the testing phase (i.e. inactive surveys).
Another option is to use templates for this. For example, if you copy the default template, you can replace this section:
<td class="survey-question-help">
{QUESTIONHELP}
</td>
with this:
<td class="survey-question-help">
{QUESTIONHELP}
{if(ACTIVE,"",
implode("","<table border='1'><tr><th>SGQA</th><th>",implode("</th><th>",self.sgqa),"</th></tr>",
"<tr><td>RelevanceStatus</td><td>",implode("</td><td>",self.relevanceStatus),"</td></tr>",
"<tr><td>Value</td><td>",implode("</td><td>",self),"</td></tr></table>"))}
</td>
That will auto-format a table within the Help section that shows (for only inactive surveys), the variable names, relevance status, and current value; and those values will update automatically as you enter data. Since it is using the
self variable, it auto-expands for every possible question type so you don't need to hard-code any SGQA values and you can make this a general part of your templates.
Here is what that looks like for the default template: