Skip to content

Commit

Permalink
Fix #875 - allow customization of interview_label
Browse files Browse the repository at this point in the history
  • Loading branch information
nonprofittechy committed Nov 30, 2023
1 parent 73492ee commit 2471f96
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docassemble/ALWeaver/data/questions/assembly_line.yml
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ script: |
</script>
---
code: |
interview_label_draft = interview.short_filename[:35]
interview_label_draft = interview.title
---
event: update_state_list
code: |
Expand Down Expand Up @@ -569,7 +569,7 @@ subquestion: |
You can change these later in the Playground.
fields:
- Title in navigation bar: interview.title
default: ${ interview.short_filename_with_spaces }
default: ${ interview.short_filename_with_spaces }
- note: |
**Your title is a little long.** Write an alternate version that
will be used on mobile screens.
Expand All @@ -582,6 +582,16 @@ fields:
val("interview.title").length > 25
help: |
This title will appear in the navigation bar on small screens.
- Use a different name for the output file (defaults to title): interview.customize_file_name
datatype: yesno
help: |
The filename is used to name the file when the user downloads it.
This will also be used to name some other variables in your YAML
file that are shown only internally.
- Custom filename: interview_label_draft
show if: interview.customize_file_name
default: ${ varname(interview.short_filename_with_spaces) }
- Description of the form for metadata: interview.description
default: |
This interview helps someone in ${ state_name(interview.state, country_code=interview.default_country_code) } ${ interview.intro_prompt[0:1].lower() }${ interview.intro_prompt[1:] }.
Expand Down

0 comments on commit 2471f96

Please sign in to comment.