Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
metadata:
title: Multiple choice with code and help
short title: MC
example start: 4
example end: 4
documentation: "https://docassemble.org/docs/fields.html#code"
---
mandatory: True
question: |
Your favorite fruit is the
${ favorite_fruit }, which is
the king of all fruits.
subquestion: |
Your brother, who is not so wise,
is partial to the
${ favorite_fruit_of_brother }.
---
question: |
What is your favorite fruit?
fields:
- Fruit: favorite_fruit
datatype: radio
code: |
myoptions
---
question: |
What is your brother's favorite
fruit?
fields:
- Fruit: favorite_fruit_of_brother
datatype: radio
code: |
myoptions
---
code: |
myoptions = [
['apple', 'Apples', None, 'Apples are good in pies.'],
['orange', 'Oranges', None, 'Oranges are a type of citrus fruit.'],
['pear', 'Pears', None, 'Pears are an acquired taste.']
]