Create, edit, or remove a variable
For more information, see Variables.
Create a variable
- Go to Configuration > Variables.
- Click Add.
- Enter a Name. For example,
DateTimeMonthStart. - Enter a Category. For example,
date-time. - For the Type, select either
ConstantorJavaScript. - If you select
Constant, enter a string for the Value. - 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(); - Optional: Click Test to test your JavaScript code.
- Optional: Enter a Description. For example,
The start date-time of the current month. - Click Save.
Edit a variable
- Go to Configuration > Variables.
- For each field of the variable you want to modify, click its field and enter a new value.
- If the variable is a JavaScript variable, modify its code in the JavaScript Code pane.
- Click Save.
Remove a variable
- Go to Configuration > Variables.
- Click Remove Variable for the relevant variable.
- Click Yes.