Skip to main content

Create, edit, or remove a variable

For more information, see Variables.

Create a variable
  1. Go to Configuration > Variables.
  2. Click Add.
  3. Enter a Name. For example, DateTimeMonthStart.
  4. Enter a Category. For example, date-time.
  5. For the Type, select either Constant or JavaScript.
  6. If you select Constant, enter a string for the Value.
  7. If you select JavaScript, enter code in the JavaScript Code field that returns a string. For example: javascript const now=new Date(Date.now()); now.setDate(0); now.setHours(0,0,0,0); return now.toISOString();
  8. Optional: Click Test to test your JavaScript code.
  9. Optional: Enter a Description. For example, The start date-time of the current month.
  10. Click Save.
Edit a variable
  1. Go to Configuration > Variables.
  2. For each field of the variable you want to modify, click its field and enter a new value.
  3. If the variable is a JavaScript variable, modify its code in the JavaScript Code pane.
  4. Click Save.
Remove a variable
  1. Go to Configuration > Variables.
  2. Click Remove Variable for the relevant variable.
  3. Click Yes.