yxh
2025-02-14 3b0a4298b0d6e40b8afa371d221ff1b1ee748c80
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<head>
    <title>Questionnaire</title>
</head>
<body>
<h1>Questionnaire</h1>
 
<form action="/smartor/svytitle/getFormDate" method="post">
    <#list questions as question>
        <h2>${question.title}</h2>
 
        <#if question.type == "singleChoice">
            <#list question.options as option>
                <input type="radio" name="${question.name}" value="${option}" id="${option}">
                <label for="${option}">${option}</label><br>
            </#list>
        </#if>
 
        <#if question.type == "multipleChoice">
            <#list question.options as option>
                <input type="checkbox" name="${question.name}" value="${option}" id="${option}">
                <label for="${option}">${option}</label><br>
            </#list>
        </#if>
 
        <#if question.type == "openEnded">
            <textarea name="${question.name}" rows="4" cols="50"></textarea>
        </#if>
 
        <br>
    </#list>
 
 
    <input type="submit" value="Submit">
</form>
</body>
</html>