Presented by the Government of Brunei Darussalam

Identifying Government Websites

Official website links end with .gov.bn
Sites with .gov.bn are official government websites of Brunei Darussalam. See trusted websites.

Secure websites use HTTPS
Look for a lock (Lock Icon) or https:// as an added precaution. Share sensitive information only on official, secure websites.

Textbox

The Textbox field is used to capture text input from users. It can be configured as either a short textbox for brief responses (e.g. names, titles) or a long textbox for extended input (e.g. addresses, explanations).

Form creators can also apply character limits, validations, and prefill options to ensure the data collected is accurate and structured according to requirements.

How to create short textbox

  1. Right-click on Form Content.
  2. Click Create.
  3. Choose Textbox.
  4. Enter a field name and provide the text you want to display under Content (e.g. Name).
  5. Click Save and Publish.
1.1

As a result:

A short textbox with the specified field name will appear on the form, allowing users to enter brief text responses.

1.2

How to create long textbox

  1. Right-click on Form Content.
  2. Click Create.
  3. Choose Textbox.
  4. Enter a field name and provide the text you want to display under Content (e.g.  Address).
  5. Tick the checkbox for Switch to Long Textbox.
  6. Click Save and Publish.
2.1

As a result:

A long textbox with the specified field name will appear on the form, allowing users to provide extended text input.

2.2

How to setting maximum character length

  1. Follow the steps How to Create Short Textbox or How to Create Long Textbox to create your textbox.
  2. Go to Validations > Maximum Character Length and enter the maximum number of characters allowed.
  3. Click Save and Publish.
3.1

As a result:

The textbox will restrict user input to the specified number of characters, and users will not be able to enter more than this limit.

3.2

How to Allow Prefill (URL and Gov AD)

Form editors have the option to allow prefilling of a field by appending a parameter to the form URL, or to prefill using Gov AD email or username (requires Gov AD authentication in Form Settings).

  1. Follow the steps in How To Create Short Textbox or How To Create Long Textbox to create your textbox.
  2. Navigate to the Prefill Values tab.

For Prefill from URL:

  1. Toggle on Allow Prefill from URL.
  2. Click Save and Publish.
  3. When sharing the form URL, attach the parameter ?fid_{fieldID}={fieldValue} to the end of your form URL, then open the form to test the prefill.

For example, navigate to the "Info" tab on the field you want to prefill, and on the right sidebar, check for the long string ID that looks like 70f056f9-48e7-485a-ac02-1206255c4824.

Let's say I want to prefill this field with the value "EGNC", I will append the end of my URL with ?fid_70f056f9-48e7-485a-ac02-1206255c4824=EGNC

For Prefill from Gov AD:

  1. Select your source to be either Gov AD Email or Gov AD Name (Username)
  2. Click Save and Publish
  3. Navigate to your parent Form, click on the "Security" tab and ensure that  "Government AD" is selected under "Authentication"

Therefore, when respondents log in via Gov AD before accessing the form, the respective field will prefill with either Gov AD Email or Gov AD Name, as configured.

As a result:

As a result, the textbox will automatically be pre-filled with the value “EGNC” retrieved from the URL parameter.

How to Add Custom Validations

  1. Follow the steps How To Create Short Textbox or How To Create Long Textbox to create your textbox.
  2. Right-click on the textbox and select Create (e.g. Validations).
  3. Choose String Field Custom Validations and enter a field name.
  4. Right-click on Validations and select Create.
  5. Choose Regular Validation and provide a field name (e.g., Password Validation).
  6. Enter your regular expression manually, or click Get Regex Suggestion to generate one using a prompt.
  7. (Optional) Enter a custom error message to display when validation fails.
  8. Click Save and Publish.
5.1.1
5.2.1
5.3.1

As a result:

The textbox will apply the specified validation rule and display an error message whenever the input does not meet the required criteria.

5.4
5.5

Connect with us


E-Government National Centre, Brunei Darussalam

© Copyright 2025 E-Government National Centre, Government of Brunei Darussalam.