script.prompt
When used in the pre()
function, upon execution of the process this function will raise a question to the user executing the process.
js
script.prompt(messageToUser, variableName, defaultValue)
Parameters
messageToUser
- the name of the request to the user (who is executing the process.variableName
- the variable within which to store the users response.defaultValue
- the default value to prepopulate the prompt with.
Example
js
script.prompt("Current Month", "current_month", "2014 - Jan");