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: Conditionally show
short title: Conditionally show
documentation: "https://docassemble.org/docs/fields.html#show if"
---
question: |
Please fill in the following information.
fields:
- "Do you like fruit?": likes_fruit
datatype: yesnoradio
- "What's your favorite fruit?": favorite_fruit
show if: likes_fruit
---
question: |
% if likes_fruit is True:
You like ${ favorite_fruit }.
% else:
You do not like fruit.
% endif
mandatory: True