Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
30 lines (30 sloc) 634 Bytes
metadata:
title: Force asking a question
example start: 2
example end: 2
documentation: "https://docassemble.org/docs/functions.html#force_ask"
---
question: |
Are you a communist?
yesno: user_is_communist
---
mandatory: True
code: |
if user_is_communist and user_reconsidering_communism:
user_reconsidering_communism = False
force_ask('user_is_communist')
---
question: |
I suggest you reconsider your
answer.
field: user_reconsidering_communism
---
question: |
% if user_is_communist:
I am referring your case to
Mr. McCarthy.
% else:
I am glad you are a true
American.
% endif
mandatory: True