PRO Snippets
A collection of snippets for creating PRO Core forms.
Snippet Use
When editing a formdef .json file, simply start typing pro.*
and a menu will display with a list of the available PRO Snippets. Arrow down the one you need, select it, and the snippet will be copied to the current formdef.
Some snippets have tab stops or variables enabled. For example, the pro.textResponse
snippet has tab stops enabled for VarName
and DisplayLabel
:
{
"VarName": "",
"DisplayLabel": {
"English": ""
},
"IsRequired": 0,
"QuestionNumber": "",
"__ClassName": "TextResponse"
}
Once the snippet is activated, the cursor will be placed at the first tab stop. In the case of pro.textResponse
the cursor will be placed at the VarName
tab stop. The idea is to enter a variable name, and then hit the tab key, which will move the cursor to the next tab stop. In this case, the next tab stop is the DisplayLabel
property. The final tab stop will always be the end of the snippet.