Looking for information about ProntoForms features and functionality? Visit our Product Documentation Portal.
Digit Extraction is used to pull numbers from mixed alphanumeric characters, phrases, or strings.
Digit Extraction is often used to make unique invoice numbers by combining extracted numbers with other answers in a form. Use it to pull pieces of information out of longer strings, such as addresses or project numbers.
To learn how to use Digit Extraction to create unique reference numbers, please read more here.
An example of a Digit Extraction question is shown below on an iOS device:
In the Form Builder, the Digit Extraction question type appears as shown below:
The Question Edit screen for Digit Extraction has 3 tabs: General, Properties, and Help Options. This article will go through each of the tabs.
The Unique ID is the reference for the question. For more information on Unique IDs, read: Overview: Unique IDs. It can either be auto-generated based on the question text, or customized.
Restrictions control how your mobile users interact with a question. They can be set on the question itself, or controlled by Conditional Logic.
|Required||Read-Only||Hidden on Device||Hidden in Reports|
|Digit Extraction||✘||✘ *||✓||✓|
* This question type is Read-Only by default because the mobile user cannot directly edit the answer; all information comes from previous answers.
Properties allow you to set up your question in various ways. With Digit Extraction, the Properties tab is where you set up which questions you will be pulling information from, and how that data will be formatted or extracted.
Our example below would pull the year, month, day, and time (in 12-hour format) from the Date/Time Question, and combine it with the Site Contact Phone Number. For example, if the answer to the Date/Time question is:
December 19, 2018, 5:27PM
And the Site Contact Phone is:
Then the answer to the Digit Extraction question would be:
- Each dropdown allows you to select an appropriate question to extract numeric digits from.
- The Extraction Pattern box allows you to set either a pattern of extraction, as in the case of Date/Time questions, or set a limit on the number of digits extracted.
- If extracting from a date/time question, set a date format string (eg yyMMddHHmmss) to extract that pattern from the source answer. Valid formats are listed in the Form Builder, as shown above.
Adding "Help" content to forms gives mobile users access to support and other resources out in the field. Help content is available to users through a button embedded beside a question. Any question in the form can include a link to Youtube videos, web pages, or HTML-formatted work instructions.
For more information on Help Content, please read: V2 Forms: Adding Help Content to Questions