Tips and Tricks

Articles

What Is the Difference Between Custom Scripting and JavaScript?
Alchemer supports two kinds of scripting in surveys: Custom Scripting and JavaScript.  You can add each to your survey by adding the script to either a Custom Script or JavaScript action respectively. Custom Scripting is scripting language...
Getting Started with Custom Scripting
To add a custom script action to your survey, click the Action button at the bottom of any page in your survey. Give your action a name. It's a good idea to describe what the action is doing in the name, for example, "Disable after ans...
Getting Started Using JavaScipt in Alchemer
While Alchemer is one of the most flexible survey tools out there, we get a few requests here and there for customizations that are not available. This is where JavaScript and Custom Scripting can save the day. If you have scripting chops you can us...
How To Find Element IDs to Use With JavaScript
If you're using JavaScript you'll eventually need to find out where a element ID is. This tutorial will walk you through locating your element IDs.  Browsers: Each browser will have a different way to find your element ID. In this tutorial I will ...
How To Find Question, Page, Option ID Numbers To Use In Custom Scripts
If you are utilizing Custom Scripts in your surveys, you will likely have a need for referencing answer options, questions, or survey pages. Each of these items have their own unique identifiers that can be referenced in your scripts. Read on to l...
Custom Scripting with Question Aliases
Did you know that you can use the question Alias in place of question ID almost universally in scripting and merge codes? Why aliases are much better to use in scripts You can use aliases in your script that mean something.  Your scripts can be ...
Using CSS Classes in JavaScript
When you are writing Javascript in Alchemer and need to interact with the DOM, the most straightforward option is often to use the IDs of the specific elements that you are interacting with.  For example, here is the HTML for an individual textbox ...
Use Autofill JavaScript To Save Time Taking And Testing Surveys
Ever get tired of clicking through your survey while testing? Adding some JavaScript to a bookmark can save you a ton of time! This tutorial will walk you through adding this bookmark to your browser.  First, create a new bookmark in your browser....
Find/Replace in Code Editor
Throughout our application we use the CodeMirror text editor for editing code. Below are keyboard functions for find and replace within the CodeMirror editor in our application. Start searching Ctrl-F / Cmd-F Find next Ctrl-G / C...
User-Defined Functions
Our Custom Scripting language has a lot of built-in flexibility, but you might need to define your own functions in a script. In this example, we'll show you how to create three simple functions: Add Values Multiply Values Divide Va...
Custom Question Builder
Custom Questions are not supported with Standard Reporting. They are only supported with Legacy Reporting, which is now depreciated.  Available on these licenses: Full Access Under  Research Library > Custom Questions we provide a framew...