Mask for entering a phone number

This mask will be applied to the Phone variable of the String type.

To add razor to a form, open the form builder.

To create a process task form in the form builder:

  • Open the task settings and select the Form (context) tab.
  • Select the Form Builder form type and click Create New Form.

In the form builder add a Panel element to any spot on the form.

In the panel settings, go to the System tab and click Edit.

In the opened window, you can change the view name (optionally) and click OK.

In the opened window, click Edit.

Next, replace the entire code with the code below.

Razor form example:

<script type="text/javascript">

The form will look like this: