Formatting Words

Copy and paste these to get your perfect capitalization formatting.

These will force capitalization, so if you want words to appear as they're typed in the questionnaire, you do not need the below.

Upper Case/Fully Capitalized (ex. APPLE)

{{ variablename|upper }}

Title Case (ex. Apple and Pear)

{{ title_case(variablename) }}

Capitalize First (ex. Apple and pear)

{{ capitalize(variablename) }}

Lower Case/Fully Lowercase (ex. apple)

{{ variablename|lower }}

Add an "an" or "a" before variable (ex. An apple; A pear)

{{ indefinite_article(variablename) }}

Plural or Singular depending on number of items (ex. 1 apple; 3 apples)

{{ quantity_noun(variablename, "apple") }}

In this example, the variable name is an Integer that identifies how many apples there are.  The word apple/apples stays constant.

Add a period to the end of a word/sentence

{{ fix_punctuation(variablename) }}

This is useful for company names where user might enter ABC, Inc., but others might be entering ABC Company. This allows you to add the period only after company names where there is no period.

Text Area Questions

If you want a Text Area question to reflect all of the line breaks you use in your entry, use the following:

{{ variablename | manual_line_breaks }}

Signature Field Size

You can limit the size of a signature field, like this by changing "1in" to another size:

{{ SignatureVariable.show(width="1in") }}

Conjugating Verbs

To conjugave a verb based on how many people are acting, you will need to take two steps:

  1. Set up a multiple choice question with variable name conjugation and three options:
  2. 1sg
  3. 3sg
  4. pl
  5. Then use the following language in your document (replacing allege with your desired verb):
  6. {{ verb_present('allege',conjugation) }}

The verb will be listed in your final document as allege, alleges, or allege, respectively, depending on the multiple choice.

Alternatively, you can also conjugate verbs by using basic conditional logic shown on the prior pages . Example: allege{% if singular %}s{% endif %}.