-
Notifications
You must be signed in to change notification settings - Fork 4
Inbuilt string substitution functions
motikant-sw edited this page Mar 5, 2016
·
2 revisions
Recipes with paramaterSets have params comprising of a key & value. In order to make the value part dynamic everytime a recipe is executed, following inbuilt functions are provided.
e.g.
{
"id": "FillTrueFalseRecipe",
"title": "Fill TrueFalse Question",
"description": "It will fill T/F question, solution, hint & answerChoices",
"project": "edulastic",
"version": "0.1",
"type": "child",
"parameterSets": {
"default": {
"questionTitle": "Filling T/F {datetime}"
}
}
},
###1. {datetime} Will be replaced by the current date time.
###2. {date} Will be replaced by the current date
###3. {time} Will be replaced by the current time
###4. {timeStamp} Will be replaced by the current timestamp
###5. {timeStamp(3)} Will be replaced by the last 3 digits of the current timestamp. A value between 1-13 can be specified.
###6. {randomString(5)} Will be replaced by a randomString upto 5 characters in length.
###7. {browser} Will be replaced by the browser name the user is currently using.