Introduction
Functions encapsulate logic into reusable chunks. Discover provides a range of predefined functions to simplify common tasks, so you don't need to be a JavaScript expert to take advantage of scripting. Functions can be used in survey elements, error messages, and the survey URL.