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/interview_url_action.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33 lines (32 sloc)
850 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: Action from anywhere | |
example start: 1 | |
example end: 5 | |
documentation: "https://docassemble.org/docs/functions.html#interview_url_action" | |
--- | |
objects: | |
- user: Individual | |
--- | |
mandatory: True | |
code: | | |
multi_user = True | |
status = 'normal' | |
--- | |
initial: True | |
code: | | |
process_action() | |
--- | |
event: check_update_status | |
code: | | |
if 'status' in action_arguments(): | |
status = action_argument('status') | |
--- | |
mandatory: True | |
question: | | |
The current status is ${ status }. | |
subquestion: | | |
Anyone can use the following links | |
to change the current status: | |
* Change to [normal](${ interview_url_action('check_update_status', status='normal') }) | |
* Change to [danger](${ interview_url_action('check_update_status', status='danger') }) | |
* Change to [critical](${ interview_url_action('check_update_status', status='critical') }) |