Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
docassemble/docassemble_base/docassemble/base/data/questions/examples/range.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35 lines (35 sloc)
765 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metadata: | |
title: Range slider | |
short title: Range slider | |
documentation: "https://docassemble.org/docs/fields.html#range" | |
--- | |
question: | | |
On a scale from 1 to 10, how | |
much do you like these animals? | |
fields: | |
- Possums: possum_preference | |
datatype: range | |
min: 1 | |
max: 10 | |
step: 0.5 | |
- Rabbits: rabbit_preference | |
datatype: range | |
min: 1 | |
max: 10 | |
--- | |
question: | | |
% if possum_preference > 7: | |
You really like possums! | |
% elif possum_preference > 3: | |
You think possums are ok. | |
% else: | |
I guess you don't really like possums. | |
% endif | |
% if rabbit_preference > 7: | |
You really like rabbits! | |
% elif rabbit_preference > 3: | |
You think rabbits are ok. | |
% else: | |
I guess you don't really like rabbits. | |
% endif | |
mandatory: True |