iFormBuilder Javascript Tips & Tricks
What's covered:
- What is the Manatee Element?
- What is the Linea Pro?
- What is the Socket element?
- What driver's license info can I capture?
- How do I capture driver's license information?
What is the Manatee Element?
Manatee Works is a barcode scanning engine that supports many different types of 1D and 2D barcodes. The data within the code can be passed to a single field or can be parsed using Javascript into many different fields, such as first and last name.
Click here for information on how to add the Manatee Element to your form.
What is the Linea Pro?
Designed for iOS devices, the Linea Pro is a combination barcode scanner, RFID reader and magnetic card swipe reader that allows for direct communication with the iForm app. Used in conjunction with the LineaPro element, you can capture driver's license information, scan QR codes, barcodes and more.
Click here for more information on how to add the Linea Pro Element to your form.
What is the Socket element?
Socket Mobile is a leading innovator of data capture and delivery solutions for enhanced productivity in retail point of sale, field service, healthcare, and other mobile markets. With the Socket element, you can capture information scanning different types of barcodes.
What driver's license info can I capture?
The following attributes are available in Javascript.
PLEASE NOTE: We have labeled the codes in color to differentiate what variables are available based on capture type (2D Scan or MagStripe Swipe).
The following can be used by both Socket and Linea Pro Widget using a Scan or Swipe:
myScan.type
myScan.age
myScan.name
myScan.address1
myScan.city
myScan.state
myScan.zip
myScan.licenseNumber
myScan.classificationCode
myScan.restrictionCode
myScan.endorsementsCode
myScan.expirationDate
myScan.birthday
myScan.sex
myScan.issueDate
myScan.height
myScan.weight
myScan.eyeColor
myScan.hairColor
myScan.isExpired
The following can only be used by Linea Pro Widget upon MagStripe Swipe with Linea-Pro or InfineaTab:
myScan.track1
myScan.track2
myScan.track3
The following can only be used by Socket, Linea-Pro or Manatee element when scanning 2D barcodes:
myScan.raw
myScan.ssn
myScan.permitClassificationCode
myScan.permitExpirationDate
myScan.permitIdentifier
myScan.permitIssueDate
myScan.permitRestrictionCode
myScan.permitEndorsementCode
myScan.lastName
myScan.firstName
myScan.middleName
myScan.nameSuffix
myScan.namePrefix
myScan.address2
myScan.residenceAddress1
myScan.residenceAddress2
myScan.residenceCity
myScan.residenceState
myScan.residenceZip
myScan.heightCM
myScan.weightKG
myScan.issueTimestamp
myScan.numDups
myScan.medicalCodes
myScan.nonResidentIndicator
myScan.uniqueCustomerIdentifier
myScan.akaBirthday
myScan.akaSSN
myScan.akaName
myScan.akaLastName
myScan.akaFirstName
myScan.akaMiddleName
myScan.akaSuffix
myScan.organDonor
How do I capture driver's license information?
To capture driver's license information, please following the instructions below. In this example, we'll be using the Manatee element to capture the data.
STEP 1. Add a Manatee element to the form and in the Dynamic Value of the element, place the following:
scan_license=""
PLEASE NOTE: scan_license is the data column name of the Manatee element used in the example.
STEP 2. Add a Text element and in the Dynamic Value, place the following:
scan_license.name
This will capture the name on the driver's license.
STEP 3. Add another Text element to the form and in the Dynamic Value, place the following:
scan_license.address1
This will capture the street address.
Continue to do this for each of the fields you wish to capture from the driver's license.
STEP 4. Save your form.
A couple things to Note
- Birth-date and Expiration will show with no formatting. Example, it will show 19880412 instead of 1988/04/12.
- Some licenses will show Sex as either 1 or 2. 1 = Male and 2 = Female. If you would like to avoid showing the number, enter this in your dynamic value.
- myScan.sex
- if (sex_column_name == 1) {"Male"} else if (sex_column_name == 2) {"Female"}
- myScan.isExpired will return as true or false.
Comments
1 comment
Import this Form Package example on how to us the Drivers License Widget with Manatee. https://0e808a562a3d41321e1a-381b3428057a40f589fdbc1e60d22d2f.ssl.cf2.rackcdn.com/branded/150/DriversLicensePackage/field_38698604858a73c5735b71.json
Please sign in to leave a comment.