Start a Trial
Products
Alchemer Survey
Alchemer Workflow
Alchemer Mobile
Services
Professional Services
Panel Services
Onboarding Services
Business Labs
Alchemer University
Basic Training
Resources
Help & Support
Blog
Security and Compliance
Login
Home
Glossary
Tips and Tricks
What Is the Difference Between Custom Scripting and JavaScript?
Getting Started with Custom Scripting
Getting Started Using JavaScipt in Alchemer
How To Find Element IDs to Use With JavaScript
How To Find Question, Page, Option ID Numbers To Use In Custom Scripts
Custom Scripting with Question Aliases
Using CSS Classes in JavaScript
Use Autofill JavaScript To Save Time Taking And Testing Surveys
Find/Replace in Code Editor
User-Defined Functions
Custom Question Builder
Working Examples of Custom Scripting
Custom Filtering / Piping Scripts
Piping From Two Questions Into One
Piping From a Checkbox Into a Grid Question
Piping: Checkbox Grid to Radio Button Grid
Piping: Radio Button Grid to Radio Button Grid
Piping: Radio Button Grid Into Checkbox Question
Piping from a Checkbox Question Into Multi-Slider
Filtering Textbox List by Checkbox Question
Scripts for Affecting Survey Questions
Age Verification by Birth Date
Show Pages Based off a Drag & Drop Ranking
Script to Display Follow Up Items for Highest Ranked Max Diff Attributes
Setting Continuous Sum Max Total Value Dynamically
Using Continuous Sum Total in a Merge Code
Use Signature Question Later in Survey
Randomization Scripts
Show a Number of Randomly Selected Pages from a Survey
Record Page Title of Randomized Pages
Show a Number of Randomly Selected Rows from a Grid
Quotas & Disqualification Scripts
Disqualify Based on Previously Collected Data
Survey Tweaks Scripts
Update Hidden Values if Answers Are Changed
Attaching Custom Content Files to an Email
Record Time Spent On Page or Survey In Milliseconds
Store Past or Future Date and Time
Email Respondent a Certificate
Update Hidden Value If Question Answers Do Not Match
Performing Basic Math Using Scripting: Add, Subtract, Multiply, and Divide
Working Examples of JavaScript
Alchemer Functions
sgapiGetValue
sgapiSetValue
sgapiGetValueLabel
sgapiGetQuestionOptionSelected
sgapiIsAnswered
sgapiGetTitle
sgapiSetTitle
sgapiHideQuestion
sgapiSetRequired
sgapiGetQuestionIDByAlias
sgapiGetQuestionProperty
sgapiSetQuestionProperty
sgapiGetQuestionRuntimeProperty
sgapiSetQuestionRuntimeProperty
sgapiGetTableQuestionTitles
sgapiGetTableQuestionSkus
sgapiRandomizeTable
sgapiSetTableOrderByTable
sgapiSetCustomTableValue
sgapiPipeMatrixRows
sgapiGetQuestionOptions
sgapiHideOption
sgapiRemoveOption
sgapiGetPipeValues
sgapiSetPipeValues
sgapiGetPipeSkus
sgapiGetPagePipedAnswers
sgapiSetPageProperty
sgapiJumpToPage
sgapiHidePage
sgapiCurrentPageSKU
sgapiCurrentPageTitle
sgapiPageMap
sgapiSetPageStartingNumber
sgapiSubmitSurvey
sgapiSubmitSurveyComplete
sgapiDisqualify
sgapiGetSurveyProperty
sgapiGetSurveyProgress
sgapiResponseReset
sgapiGetRespondentSessionID
sgapiReferrer
sgapiGetQuestionResponseCount
sgapiGetQueryResponseCount
sgapiResultsQuestionTotal
sgapiResultsQuestionAverage
sgapiQuestionsAnsweredOnPage
sgapiCheckboxTotalChecked
sgapiAllQuestionsOfType
sgapiURLValue
sgapiRunAction
sgapiArrayGet
sgapiArraySet
sgapiCSVSplit
sgapiTranslate
sgapiEvaluateMergeCodes
sgapiRenderQuestionHTML
sgapiIsHttps
API Functions
sgapiList
sgapiListAdd
sgapiListRemove
sgapiListReplace
Email Campaigns & Actions
sgapiAddContactToInvite
sgapiRemoveContactFromInvite
sgapiAddContactToList
sgapiRemoveContactFromList
sgapiSetHTMLEmail
sgapiSetTEXTEmail
sgapiEmailSend
PDF Functions
sgapiNewPDF
sgapiTextPDF
sgapiSetFontPDF
sgapiSetColorPDF
sgapiImagePDF
sgapiTablePDF
sgapiNewPagePDF
sgapiPDFOutput
sgapiHTMLTOPDF
PHP Functions
sgapiArrayCombine
sgapiArrayDiffKey
sgapiArrayMerge
sgapiArraySearch
sgapiArrayUnique
sgapiArray_Diff
sgapiArray_Flip
sgapiArrayIntersect
sgapiArrayKeys
sgapiArray_Multisort
sgapiArray_Pop
sgapiArrayPush
sgapiArray_Rand
sgapiArrayShift
sgapiArraySlice
sgapiArraySplice
sgapiArraySum
sgapiArrayValues(%%array)
sgapiASort
sgapiARSort
sgapiBase64Decode
sgapiBase64Encode
sgapiChop
sgapiCount
sgapiDate
sgapiExp
sgapiExplode
sgapiFullChop
sgapiHtmlentities(%%html)
sgapiIConv
sgapiImplode
sgapiIn_Array
sgapiIsArray
sgapiIs_Null
sgapiKSort
sgapiKRSort
sgapiLog
sgapiMin
sgapiMax
sgapiMCrypt
sgapiMDecrypt
sgapiMd5
sgapiNumberFormat
sgapiParseURL
sgapiPi
sgapiPow
sgapiPreg_Match
sgapiPreg_Replace
sgapiPrint_R
sgapiRand
sgapiRound
sgapiRSort
sgapiShuffle
sgapiSort
sgapiSqrt
sgapiStrCaseCmp
sgapiStrLen
sgapiStrPos
sgapiStrToLower
sgapiStrtotime
sgapiStrToUpper
sgapiStr_Replace
sgapiSubStr
sgapiTrim
sgapiTrimStr
sgapiPregSplit(%%pattern, %%subject, %%limit, %%flags)
sgapiURLDecode
sgapiURLEncode
Glossary
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z