Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

The below is a primer on how to reference form questions and case properties using the hashtag shortcut.

When in doubt, you can always drag and drop questions or case properties from the windows on the left of the form builder. But if you want to go for speed, here's how the hashtags work:

Let the Autocomplete Dropdown to Help You Out

You don't have to know the exact format of the hashtag reference in order to use hashtags. Just enter # and start typing to narrow down results. An autocomplete dropdown will appear that displays the best matches to what you've typed.

Autocomplete finds matches by case property name, question ID, and question text.

Reference Form Questions

References to form questions always start with #form. They follow the format:

 #form/question_id

Let's say I want to reference the question with the id "favorite_color". The reference would be:

#form/favorite_color

Reference Case Properties

References to case properties always start with #case. They follow the format: 

#case/case_property_name

Let's say I want to reference the case property "case_name". The reference would be: 

#case/case_name

NOTE: If your app has multiple case types, this reference can only access case properties in the case type defined in your form's module. 

Child Cases

If your current module's case type is a child case, you can also reference case properties of the parent case. References to the parent case follow the format:

#case/parent/case_property_name

Let's say I want to reference the case property "case_name" of my parent case. The reference would be:

#case/parent/case_name

It is also possible to reference your parent's parent. For example, if you have three modules: household, family, baby, where "family" is a child case of "household", and "baby" is a child case of "family". In the baby module, you can reference the name of the household (my "grandparent" case) using the following format:

#case/grandparent/case_property_name

Let's say I'm in a form in the "baby" module, and I want to reference the name of the household. The reference would be:

#case/grandparent/case_name
  • No labels