---
title: Design Script Template
slug: singleconnect-reference-guide-3-1-0/design-script-template
description: Learn how to use the Design Template in the Single Connect Web GUI with this comprehensive document. Discover step-by-step instructions for navigating the Script Designer, filling in required fields, saving templates, and more. Additionally, explore how t
docTags: 
createdAt: 2022-08-02T10:21:04.000Z
---

The Design Template includes a GUI to design the script:

1. Log in to the Single Connect Web GUI.
2. Navigate to **Script Designer** > **Script Builder**.
3. Open th&#x65;**&#x20;Design Script Template** tab.
4. Fill in the required fields.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/YxaLyYyuq8IbDScIVH0Od_image.png" size="80" width="806" height="397" caption="Script Builder" position="center" showCaption="true"}

*Screen Inputs*

**Vendor Type**: End device vendor type.
**Script Name**: Script template name.
**Script Group**: Select a script group.
**Execution Block**: Commands to execute. “%” operand should be used to define variables (%command% etc.)
**Precheck Commands**: Commands to execute for precheck. These commands should be added in the Command Template menu
**Postcheck Commands**: Commands to execute for post check. These commands should be added in the Command Template menu

*Screen Buttons*

**Clear**: Clears all fields.&#x20;

**Next**: Saves the template and moves to next step.

After filling out the required fields, the command is saved by pressing the Next button. When parameters are added to the execution block, the screen below should be edited according to the parameter type:


::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/2n6ZltC4bbXf5T9a7WIvG_image.png" size="80" width="843" height="335" caption="Script Builder " position="center" showCaption="true"}



**Parameter Name**: Name of the input parameter
**Prefix**: Name to add to the beginning of the parameter name
**Postfix**: Name to add to the end of the parameter name
**Parameter Type**:  Select from:

-  String: Input values will be entered as string format.
-  Integer: Input values will be entered as integer format.
-  Static Combo: Input values will be selected from the pre-defined “List Values” field.
- Dynamic Combo: Input values will be selected from the pre-defined **Command** field.
-  Boolean: Input values are **true** and **false**.

**Min. Value**:  Optional min value
**Max Value**: Optional max value
**Validate Regex**: Optional field for String Validation.
**List Values**: When the parameter type is selected as Static Combo, the desired values should be defined in this area like, “0/1, 0/2, 0/3”
**Command**:  When the parameter type is selected as Dynamic Combo, the parameter values are picked from the command template defined as combo evaluation type (Utility>>Command Template)

The next screen is for script output and action formatting :

1. Click th&#x65;**&#x20;plus (+)** button on the top to create a new output parameter (it will be used in the Workflow Designer).
2. Click the **Edit** button on the parameter.
3. Paste a sample into the **Output** text field.
4. Select the desired format actions, then use th&#x65;**&#x20;Add** button to format the output text.
5. When the actions are ready, use the Format Output button to test them.
6. If the output is as expected, click **Set Script** to save the actions to the parameter
7. Click th&#x65;**&#x20;Save&#x20;**&#x62;utton to save the script.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/Dbnhbueu4s4CGflPQsezE_image.png" size="80" width="650" height="430" caption="Script Template Design" position="center" showCaption="true"}

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/hkxzz0NnpQCu_BATF3R7__image.png "Script Template Design")



For example, the script in the screen below has an input value. The input value must have been defined by using a “%” operand, like “%input%”. It has precheck commands.

To add a precheck command:

1. Click the **Add New Check** button.
2. Click the search button to list all check commands (Check commands can be created in the Command Template (Utility>Command Template)
3. Click the **Next** button.
   The defined parameter “**%listoutput%**” is included on the next screen (figure above). The parameter type should be selected on this screen. If Static Combo is selected, **List values** is a required field, and values must be split with a comma “,”. If Dynamic Combo is selected, **Command** is a required field, and the commands will be listed wherever they are defined as combo in the command template.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/mTqnFjc2fPOh25FBz2Wr0_image.png" size="80" width="831" height="404" caption="Script Builder " position="center" showCaption="true"}

The next screen is the output definition screen.  To get an output value after the script is run, define it in this screen:

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/63GF8lHJSnkWm_Os5KmtW_image.png" size="80" width="794" height="412" caption="Script Builder " position="center" showCaption="true"}

1. Add the output parameter.
2. The parameter name can be changed.
3. Click the edit button.
4. Paste the example output.
5. Select Format Action and click Add.
6. Click the **Format Output** button to control the output value (The actions application is similar to a logical ^(and) operation)
7. If the value of the actions is correct, click th&#x65;**&#x20;Set Script** button.
8. Click the **Save** button.&#x20;

