Unique ID Regions

Unique ID Regions

Overview

Note: The Unique ID Region Type in available in Forms Designer 6.5 and higher
The Unique ID region allows the number initially assigned to increment by one every time the Form is accessed, such as an invoice number or serial number. This can be helpful to identify each submitted Form as unique.
 

Creating a Unique ID Counter in the Portal

Before you can use a Unique ID Region in your Form, you must create a Unique ID counter for your Company. The Unique ID Region will be using this counter to populate the next Unique ID into your Form.
1. From the Admin tab, select Unique ID.
Note: Unique ID must be enabled in your Company's profile by Field2Base. If you do not see Unique ID listed in the Admin menu, please contact Field2Base Support to enable this feature in your account.
 
2. Click Create to open the dialog box.
 

3. Fill in the appropriate data to configure your counter then click Submit.


a. Name - Set the name of the counter. You will need use this name when you create your Unique ID Region in Forms Designer. This field is required.
b. Start Value - The first number in the counter. The default start number is 1 but you can change it as needed.
c. End Value - The maximum number for the counter. This field is optional. 
Note: Once the maximum value is reached, the Form will create an error and cannot be sent until the counter is restarted. Only use this option if you know you will have a limited amount of Forms.
d. Prefix - This will be pre-pended to each Unique ID. For example, you could add a department prefix to your Unique IDs such as F2B-PS 000001. This field is optional.
e. Pad Size - The length of your serial number. The prefix is not counted in the pad size. You do need to specify a pad character for your pad size in order for it to work. This field is optional.
f. Pad Character - The character used to fill spaces of your pad size. This field is optional.
Example: If the Start Value is 1, Prefix is "F2B-PS ", Pad Size is 4, and Pad Character is "0", then the first serial number will be F2B-PS0001 followed by F2B-PS0002.
  

Creating a Unique ID Region in Forms Designer

Once the Unique Id counter that you want to use has been created in the Portal, you are ready to create a Unique ID Region on your Form!
1. Create a new Region and choose Unique ID as your Region type.


2. Go to the Unique ID tab in the Edit Region dialog box to select the options for your Unique ID Region. 

a. Unique ID Trigger - You can set when the Unique ID will be populated into your Form in this section. 
  1. The default is to populate the Region when your Form is initially opened.
  2. To populate the Unique ID when the Form is sent, choose When the form draft is sent
Note: You cannot set a Unique ID Region as required if it is being populated during form sending since form validation is completed before sending. However, the Form will not be sent without a unique id. The User will be prompted to retry when they have an active connection and can receive the next available ID from the specified counter.
  1. To populate the Unique ID the first time a Region is changed, choose The first time a region changes then choose the desired Region from the Trigger region drop-down. For example, if you only want to get a Unique ID to be generated when a Form is signed, you could set that signature Region as the trigger Region.
  2. To populate the Unique ID every time a Region is changed, choose Every time a region changes then choose the desired Region from the Trigger region drop-down.
b. Trigger region - This field will become enabled once a Unique ID Trigger that uses a trigger Region has been selected. Click on the > button to access the window of available Form Regions to use as a trigger to generate a Unique ID. Select the desired trigger Region and click OK to populate the Trigger region field.

c. Unique ID Source  - You must define the source for your Unique ID in this section.
  1. The default option is to Use a static counter name. 
  2. You can also Choose the counter dynamically using a region value. For example, if you have several department counters that you want to populate from depending on which name is chosen from a Datasource Region on your Form.
d. Unique ID Source Field - Enter either the name of the Unique ID counter that you want to use (if you are using a static counter name) or select the Region value that contains the name of the counter that you want to use (if you are using a region value). If you have selected Choose the counter dynamically using a region value, the > button will be enabled and you can click on it to access the window of available Form Regions to use as a source.

e. Allow users to enter a new value - By default, Unique ID Regions cannot be changed by the user. If you want to give Users the ability to insert a value into a Unique ID Region (typically used when there is no Internet access for calling web services), check this option.
 

    • Related Articles

    • Creating Regions

      Overview A Region is a field on your company's Form. Regions are the individual fields you define on top of the Form background image and allow the user to provide necessary and relevant data. Regions come in all shapes and sizes, including include ...
    • SQL Datasource Regions

      Overview This article describes how to set up a SQL Datasource Region in Forms Designer. A SQL Datasource allows you to pull data from external Form Data Files (Excel or Access files) into your Form. This is a convenient option when you need to make ...
    • Region Types

      Overview Forms Designer offers various types of Regions that to allow you (the Form Designer) to customize each Region for specific content. Each Region Type has unique properties and is designed to accept a certain type of input in the Form. For ...
    • Forms Designer Quick Start Guide

      Overview Field2Base Forms Designer is the proprietary software application that allows your existing Forms to be quickly converted to an active, online, smart Form available to your end users via our Mobile Device and Web-based Applications. This ...
    • JavaScript Reference

      Note: Global variables do not work consistently across all platforms. We do not recommend using global variables. In cases where global variables are needed, you can use a hidden region to store a value that can be used like a global variable in your ...