Sample Xlsform

Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1of 11

type name

text some_text

note text_image_audio_video_test

integer a_integer

decimal a_decimal

calculate calculate
note calculate_test_output

select_one yes_no select_example

text required_text

acknowledge acknowledge_test

select_one yes_no skip_example

text skipable_question

begin repeat repeat_test


text repeating_question
end repeat repeat_test
begin group group_test

note field_list_note

select_multiple yes_no select_multiple_1


select_multiple a_b select_multiple_2
end group group_test
begin group table_list_example
select_one yes_no table_list_question_1
select_one yes_no table_list_question_2
end group table_list_example

note select_appearance_note

begin group labeled_select_group


select_one yes_no label_test
select_one yes_no list-nolabel_test
end group
select_one a_b compact_test

note data_types_note

date date_test
time time_test
datetime datetime_test
geopoint geopoint_test
barcode barcode_test
image image_test
audio audio_test
video video_test

note metadata_note

start start
note start_test_output
end end
note end_test_output
today today
note today_test_output
deviceid deviceid
note deviceid_test_output
simserial simserial

note simserial_test_output

phonenumber phonenumber

note phonenumber_test_output
label hint
Hints provide additional information about a
This is a basic fill in the blank question.
question that is displayed less prominently.

In order to select a different translation press


your phone's menu button and you should see
This question shows how to use translations and media
a "Change Language" button. In order to add
types.
mediafiles put them in your phone's odk/forms/
[formname]-media folder.

Enter a integer:

This question has a constraint so that the


Enter a decimal:
decimal must be less that the integer.

The sum of the integer and decimal: ${calculate}


In the type column you must include the name
of a choices list that sets the available options.
This is a select_one type question.
Choices lists are specified on the choices
sheet.

Required field You have to enter something to continue.

Acknowledge prompts can be used to indicate some action


was completed. For example, a real prompt might read,
"Inform the subject how the data collected on them will be
used."

Skip the next question?


This question will be skipped if its "relevant" column is
You can also have skip logic for groups.
false.
A repeat
This is a repeating question. You can also repeat groups of questions.

A group

Using a group with a field-list appearance you can make


multiple promps appear on the same screen.

Select multiple 1
select multiple 2

table-list group
Table list question 1 A hint
Table list question 2 A hint

The following questions demo different appearance


attributes for select type questions
labeled select group test
label-test
list-nolabel-test

Compact appearance Requires images


The following prompts demo some of the other types of
information you can collect with ODK Collect.
Enter a date:
Enter a time:
Enter a date and a time:
Record your location:
Scan a barcode:
Take a picture:
Record audio:
Capture video:

The following prompts show some of the metadata that you


can gather during a survey.

-
Survey start time: ${start}
-
Survey end time: ${end}
-
Today: ${today}
-
deviceid: ${deviceid}
-
Depending on your device and carrier this
simserial: ${simserial}
might not be recordable.
-
Depending on your device and carrier this
phonenumber: ${phonenumber}
might not be recordable.
constraint constraint_message required

You can set the toast that appears


. <= ${a_integer}
when a constraint is violated.

yes

not(selected(., 'yes') and selected (., 'no')) You can't select yes and no. no
appearance default relevant read_only calculation

123

${a_integer}+${a_decimal}

selected(${skip_example}, 'no')

field-list

minimal

table-list

field-list
label
list-nolabel

compact
hint::chinese label::chinese image audio image::english media::audio::chinese

ni hao img_test.jpg audio_test.wav img_test_2.jpg chinese_audio.wav


media::video

test.mov
list_name name label image label::chinese
yes_no yes Yes
yes_no no No
a_b a a a.jpg
a_b b b b.jpg
form_title form_id
sample sample

You might also like