Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
47 lines (47 sloc) 1.01 KB
metadata:
title: Set the interview title
short title: Title
tab title: The Title
subtitle: The subtitle
example start: 1
example end: 4
documentation: "https://docassemble.org/docs/functions.html#set_parts"
---
metadata:
title: Set the interview title
short title: Title
tab title: The Title
subtitle: The subtitle
pre: The pre text
submit: The submit text
post: The post text
---
question: |
What is your favorite fruit?
subquestion: |
Note the interview titles.
fields:
Fruit: favorite_fruit
---
mandatory: True
code: |
favorite_fruit = noun_plural(favorite_fruit)
favorite_fruit = capitalize(favorite_fruit)
---
mandatory: True
code: |
set_parts(
title=favorite_fruit + " rule",
short="I'm Tiny!",
tab="TabTab",
subtitle="a fruit interview",
pre="This is about fruit",
submit="Get ready for some buttons",
post=DAStaticFile(filename="endmatter.html").slurp())
---
mandatory: True
question: |
The interview titles have been
changed.
buttons:
- Restart: restart