What are the Unique ID Widget Properties
Unique ID Widget
‘Unique ID’ for your workflow can enable generate unique numbers. You can use them to create a different serial numbers for forms, subforms, etc. To use this feature, just drag the widget from the left panel to the digital mobile screen in the middle. While filling up the workflow, the user has to just tap on the ‘Unique Id.’
Unique ID Widget—Properties
Prefix property on the right panel will help you to include certain characters at the beginning of each unique ID generated. These characters will be common to each ID generated. Click on ‘Empty’ besides prefix, and type the prefix that you need to have.
For example—if you are generating unique IDs for inspection forms, then you can set the prefix as ‘Inspection Workflow.’ Every time a workflow is filled, the unique ID generated will have ‘Inspection Workflow’ as a prefix. So, the unique ID created would be something like ‘Inspection Workflow 234vv7wewe”
You can change the name of the ‘Unique ID’ using a label property. It is ‘Unique ID’ by default. On the right panel, go to the label section and you can type the required text that you want. The same name will appear on the workflow. For example, you can keep the label of your Unique ID as ‘Serial Number.’
You can use this property to make that ‘Unique ID’ mandatory to be filled. Some fields in your workflow might be mandatory, while some might not be.
For example, the ‘Unique ID’ field can be set to ‘Yes’ in the required property when you want to make the field mandatory. So, while filling out a workflow, the user will have to compulsorily add the Unique ID while filling the mobile workflow, without which the workflow wouldn’t be submitted.
Every field will have a unique identifier. No two unique identifiers for fields will be the same. Please note that the ‘Unique Identifier’ property is just for reference purposes only. The user need not have to do anything to this property, it can be referred to when there are fields created with the same names. When you create two fields with the same names, it might get confusing when you are setting a condition and you wouldn’t know which field is which.
For example—if you have created a field ‘address’ – and set a visibility condition to it saying the ‘address’ field will be only visible if you have entered the ‘Phone number.’ But if there are two fields that say ‘Phone Number’ – it will be difficult to set a visibility condition since both the fields have the same name. Both of these fields ‘Phone Number’ will have different unique identifiers. You can check the unique identifier and then set the condition accordingly.
Visibility Condition in the property for the ‘Unique’ is used to specify a condition. If you apply any visibility condition, it implies that the ‘Unique Id’ field will only be visible if it satisfies the condition that you have set. Visibility condition can be set by specifying the condition – you can do that by clicking ‘condition not specified.’
For example—you might create a Field ‘Premise A Unique ID’ which will be only visible if the user chooses the ‘Yes’ option in the previous choice list ‘Was Premise A Inspected?’ Visibility conditions can help you control the type of input during the filling of a workflow by the user.
Validity Condition in the property for the ‘Unique ID’ is used to specify a condition. If you set any validity condition, it implies that the ‘Unique ID’ will only be valid if it satisfies the condition that you have set. Validity condition can be set by specifying the condition – you can do that by clicking ‘condition not specified.’
For example—you might create a Unique ID field ‘Premise A Unique ID’ which will be only valid if the user enters ‘Premise A’ in the earlier field ‘Which Premises were Inspected?’ Otherwise, it would be invalid and show an error message.
Validations can help you control the type of input during the filling of a workflow by the user. You can also customize an error message that you want to display. Just by typing the message in ‘Validity Error Message.’ This message will be displayed when the validity condition does not match with the given input.
The error message could be “This ID is only for Premise A.”