testa1:_template

Question: %%form_data{question}%%

Answers: Selected:
%%form_data{answer1}%% Selected: %%form_data{answer1s}%%
%%form_data{answer2}%% Selected: %%form_data{answer2s}%%
%%form_data{answer3}%% Selected: %%form_data{answer3s}%%
%%form_data{answer4}%% Selected: %%form_data{answer4s}%%

[[button set-tags +_%%form_raw{question}%% +_%%created_by_unix%% text="Confirm Your Answer"]]
This is the question:

Question: %%name%%
%%form_data{question}%%
Answers
%%form_data{answer1}%%
%%form_data{answer2}%%
%%form_data{answer3}%%
%%form_data{answer4}%%

[[button set-tags +_%%form_raw{question}%% +_%%created_by_unix%% +_a1%%form_data{answer1s}%% +_a2%%form_data{answer2s}%% +_a3%%form_data{answer3s}%% +_a4%%form_data{answer4s}%% text="Store correct Answer"]] gives:

Store correct Answer


Add a new question

====
[[form]]
fields:
question:
  label: Question
  type: text
answer1:
  label: Answer1
  type: text
answer1s:
  label: Select
  type: select
  values:
    v1: 'Yes'
    v2: 'No'
  default: 'No'
answer2:
  label: Answer2
  type: text
answer2s:
  label: Select
  type: select
  values:
    v1: 'Yes'
    v2: 'No'
  default: 'No'
answer3:
  label: Answer3
  type: text
answer3s:
  label: Select
  type: select
  values:
    v1: 'Yes'
    v2: 'No'
  default: 'No'
answer4:
  label: Answer4
  type: text
answer4s:
  label: Select
  type: select
  values:
    v1: 'Yes'
    v2: 'No'
  default: 'No'
[[/form]]

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License