The wscScripting Object
The following methods are available in the wscScripting object. Some methods contain a method and an
identical method post-fixed with the number 2. These methods are used where the question has two (2)
choice ranges.
For example, Dual Range Matrix questions consist of a Primary Range and a Secondary Range.
In these circumstances the Secondary Range can be utilized by using the methods with a post-fix of 2.
For example, getChoiceByValue2(question, value).
- wscScripting.clearValidation(question)
- wscScripting.derankChoice(question, choice)
- wscScripting.deselectChoice(question, choice)
- wscScripting.deselectChoice2(question, choice)
- wscScripting.deselectChoiceByValue(question, value)
- wscScripting.deselectChoiceByValue2(question, value)
- wscScripting.deselectMatrixChoice(question, choice, row)
- wscScripting.disableQuestion(question, fade)
- wscScripting.enableQuestion(question, fade)
- wscScripting.findObjectByKey(array, key, value)
- wscScripting.findOrdinalByKey(array, key, value)
- wscScripting.getABTesting()
- wscScripting.getAgeFromDate(date)
- wscScripting.getBrowserData()
- wscScripting.getChoiceByCode(question, value)
- wscScripting.getChoiceByCode2(question, value)
- wscScripting.getChoiceByIdentity(question, identity)
- wscScripting.getChoiceByIdentity2(question, identity)
- wscScripting.getChoiceByTagValue(question, tagName, value)
- wscScripting.getChoiceByTagValue2(question, tagName, value)
- wscScripting.getChoiceByValue(question, value)
- wscScripting.getChoiceByValue2(question, value)
- wscScripting.getChoiceCommentByChoice(question, choice)
- wscScripting.getChoiceRandomizationItems(question, grid)
- wscScripting.getCurrentDateAsString()
- wscScripting.getDateFromDateString(datestring)
- wscScripting.getDateStringFromDate(date)
- wscScripting.getDirection()
- wscScripting.getDisplayType()
- wscScripting.getDistribution()
- wscScripting.getElementById(id)
- wscScripting.getEventData(name)
- wscScripting.getFileBarcodeData(question)
- wscScripting.getFirstSelectedChoice(question)
- wscScripting.getFirstSelectedChoice2(question)
- wscScripting.getFirstSelectedChoiceValue(question)
- wscScripting.getFirstSelectedChoiceValue2(question)
- wscScripting.getFirstSelectedMatrixChoice(question, row)
- wscScripting.getFirstSelectedMatrixChoice2(question, row)
- wscScripting.getFirstSelectedMatrixChoiceValue(question, row)
- wscScripting.getFirstSelectedMatrixChoiceValue2(question, row)
- wscScripting.getLanguageId()
- wscScripting.getMatrixChoiceCommentByRow(question, choice, row)
- wscScripting.getMatrixChoiceNumericTotal(question, choice)
- wscScripting.getMatrixNumericTotal(question)
- wscScripting.getMatrixRowNumericTotal(question, row)
- wscScripting.getMatrixValue(question, oChoice, oRow)
- wscScripting.getOriginalDataStatus()
- wscScripting.getPageRandomizationItems()
- wscScripting.getQuestionByDataPipingCode(dataPipingCode)
- wscScripting.getQuestionByIdentity(identity)
- wscScripting.getQuestionRandomizationItems(pageId)
- wscScripting.getQuotaByCode(code)
- wscScripting.getQuotaByIdentity(identity)
- wscScripting.getRecallCode()
- wscScripting.getRowByCode(question, value)
- wscScripting.getRowByTagValue(question, tagName, value)
- wscScripting.getRowByValue(question, value)
- wscScripting.getRowRandomizationItems(question)
- wscScripting.getSelectedChoices(question)
- wscScripting.getSelectedChoices2(question)
- wscScripting.getSelectedMatrixChoices(question, row)
- wscScripting.getSelectedMatrixChoices2(question, row)
- wscScripting.getSelectedRanks(question)
- wscScripting.getSubstringLeft(str, n)
- wscScripting.getSubstringRight(str, n)
- wscScripting.getTagValueByName(tagList, tagName)
- wscScripting.getTrimString(str)
- wscScripting.getUrlParameter(parameter)
- wscScripting.getValidators(question)
- wscScripting.getValue(question)
- wscScripting.hideElement(element)
- wscScripting.hideMatrixCell(question, choice, row)
- wscScripting.hideMatrixCell2(question, choice, row)
- wscScripting.hideQuestion(question)
- wscScripting.isAnyChoiceSelected(question, choices)
- wscScripting.isAnyChoiceSelected2(question, choices)
- wscScripting.isAnyChoiceSelectedByValue(question, values)
- wscScripting.isAnyChoiceSelectedByValue2(question, values)
- wscScripting.isAnyMatrixChoiceSelected(question, choices, row)
- wscScripting.isAnyMatrixChoiceSelected2(question, choices, row)
- wscScripting.isAnyMatrixChoiceSelectedByValue(question, values, row)
- wscScripting.isAnyMatrixChoiceSelectedByValue2(question, values, row)
- wscScripting.isChoiceSelected(question, choice)
- wscScripting.isChoiceSelected2(question, choice)
- wscScripting.isChoiceSelectedByValue(question, value)
- wscScripting.isChoiceSelectedByValue2(question, value)
- wscScripting.isMatrixChoiceSelected(question, choice, row)
- wscScripting.isMatrixChoiceSelected2(question, choice, row)
- wscScripting.isMatrixChoiceSelectedByValue(question, value, row)
- wscScripting.isMatrixChoiceSelectedByValue2(question, value, row)
- wscScripting.isQuotaFull(quota)
- wscScripting.logJSEvent(object)
- wscScripting.numberToStringWithCommas(number)
- wscScripting.randomSelectChoice(question)
- wscScripting.randomSelectChoice2(question)
- wscScripting.randomSelectMultipleChoice(question, maxOptions)
- wscScripting.randomSelectMultipleChoice2(question, maxOptions)
- wscScripting.randomizeArray(array)
- wscScripting.rankChoice(question, choice, rank)
- wscScripting.resetMatrix(question, value)
- wscScripting.resetMatrixRow(question, row, value)
- wscScripting.resetQuestion(question)
- wscScripting.selectChoice(question, choice)
- wscScripting.selectChoice2(question, choice)
- wscScripting.selectChoiceByValue(question, value)
- wscScripting.selectChoiceByValue2(question, value)
- wscScripting.selectMatrixChoice(question, choice, row)
- wscScripting.selectMatrixChoice2(question, choice, row)
- wscScripting.selectMatrixChoiceByValue(question, value, row)
- wscScripting.selectMatrixChoiceByValue2(question, value, row)
- wscScripting.setChoiceCommentByChoice(question, choice, comment)
- wscScripting.setChoiceRandomizationItems(question, choiceItems, grid)
- wscScripting.setEventData(name, value)
- wscScripting.setMatrixChoiceCommentByRow(question, choice, row, comment)
- wscScripting.setMatrixValue(question, oChoice, oRow, value)
- wscScripting.setPageRandomizationItems(pageItems)
- wscScripting.setQuestionRandomizationItems(pageId, pageItems)
- wscScripting.setRowRandomizationItems(question, rowItems)
- wscScripting.setStarRatingonClick(question, clickEvent)
- wscScripting.setValidation(question, text)
- wscScripting.setValue(question, value)
- wscScripting.showElement(element)
- wscScripting.showMatrixCell(question, choice, row)
- wscScripting.showMatrixCell2(question, choice, row)
- wscScripting.showQuestion(question)
- wscScripting.sortNumericArray(array, ascending)
- wscScripting.sortQuotasByLeastFilled(quotas)
- wscScripting.sortQuotasByMostFilled(quotas)
- wscScripting.sortStringArray(array, ascending)
- wscScripting.validateStringIsDecimal(str)
- wscScripting.validateStringIsInteger(str)