Portal script component

The Portal component embeds a script page into a script. To embed a script page into a script, follow these steps:

  1. Click Admin.
  2. Under Contact Center, click Scripts.
  3. Click Menu > Digital and Telephony > Orchestration Assets > Scripts.
  4. Create a script or open an existing one.
  5. From the Component toolbar, click Page
  6. In the Properties panel, expand the Common group. 
  7. Use the Page menu to select a Page or Variable to embed into your script.
    Note: If you select Page, select a page for your script. If you select Variable, select the variable that contains the name of your page.
  8. Set other properties for the component.

Layout properties

Configures width to a fixed size, to grow as needed to display content, or to consume as much space as possible relative to other components, using weighting to influence size adjustments.

Setting Description
Script Layout Auto Sizing Auto-sizing configures the component to shrink or grow in accordance with its contents. For example, the width of a label can grow depending up on how much text it contains.
settings-sizing-stretch

Stretch allows a component to consume as much space as possible relative to other components, using weighting to influence size adjustments.

If two components are both set to stretch, they are both allocated 50% of the remaining space by default. This proportion can be adjusted by changing the weight value.

For example, if you set one component to a weight of 200, and the other to a weight of 100, then the first component occupies two thirds of the remaining space, while the other only takes one third. The first component appears twice the size of the other component, since its weight was two times the second component's weight.

Script Layout Pixels Sets a fixed size in pixels. You can type an integer value into the box, or use up or down arrows to increment or decrement size. These arrows are visible when the component has focus.

Configures height to a fixed size, to grow as needed to display content, or to consume as much space as possible relative to other components, using weighting to influence size adjustments.

Setting Description
Script Layout Auto Sizing height Auto-sizing configures the component to shrink or grow in accordance with its contents.
Script Layout Pixels height Sets a fixed size in pixels. You can type an integer value into the box, or use up or down arrows to increment or decrement size. These arrows are visible when the component has focus.
settings-sizing-stretch

Stretch allows a component to consume as much space as possible relative to other components, using weighting to influence size adjustments.

If two components are both set to stretch, they are both allocated 50% of the remaining space by default. This proportion can be adjusted by changing the weight value.

For example, if you set one component to a weight of 200, and the other to a weight of 100, then the first component occupies two thirds of the remaining space, while the other only takes one third. The first component appears twice the size of the other component, since its weight was two times the second component's weight.

Aligns a component to the left, right, or center, relative to its parent container.

Tip: A component cannot be vertically aligned to center if the Height setting of its parent container is Auto Sizing. To correct this, set the parent container's Height to Stretch or to a fixed height in Pixels.
Setting Example
align-left2 align-left-example2
align-center2 align-center-example2
align-right2 align-right-example2
align-start align-start-example
align-vertical-center align-vertical-center-example
align-vertical-end align-vertical-end-example

Margins set left, right, top, and bottom spacing around a border.

Image shows relationship between margin, border, and padding settings.

  1. To optionally update all margin values at once, press the Set All button for Margin in the properties panel.

    image of the set all button

  2. Click the value field for a margin. A spin control appears in that field.

  3. Use the spin control to increase or decrease the margin. If Set All was selected, the change is applied to all margins.

    settings-margin-spinner

    The component is immediately repositioned using its new margin setting.

Sets the visibility of a component based on the value of a Boolean (True or False) variable, or an expression.

To set the Visible property based on a variable:

  1. Click the Layout property group.
  2. Under Visible, click Select Variable.
  3. Select a variable, or optionally create a new Yes/No variable and then assign that new variable to the Visible property.
  4. At runtime, the component is visible when the value of the variable is True. Conversely it is hidden when the variable's value is False.

To set the Visible property based on an expression:

  1. Click the Layout property group.
  2. Under Visible, select True/False Expression.
  3. In the Insert Variable box, enter an expression .

At runtime, the component is visible when the expression is True. The component is hidden when the expression is False.