Net Promoter Score℠ in scripting
Use scripting to get and set ratings.
The functions in this topic apply to Net Promoter Score℠1 questions only.
Function | Description |
---|---|
question.get()
|
Returns the following schema:
This method will return null if the question is unset (default value). |
question.set(rating, openEnd)
|
Sets the rating parameter with an integer between 0 and 10. The rating parameter is mandatory and the openEnd parameter is optional. |
question.unset()
|
Unsets the value so that there is a default no value state for the question. |
1 Net Promoter, NPS, and
the NPS-related emoticons are registered U.S. trademarks, and Net Promoter
Score and Net Promoter System are service marks, of Bain & Company, Inc.,
NICE Systems, Inc. and Fred Reichheld.