Bind to Global Values

Chris Deszell

Learn How to Bind to Global Values, Quickly!

Sometimes you may want to store data as global values on a mobile device to be re-used in one or more screens. You can use the app settings option “Remember My Answers”, but what if you don’t want all of the answers to be prepopulated in a form. You only want the customer information to be prepopulated on form load.


One way to handle this is by using the option “Bind to Global Value” on a field’s properties. Simply specifying a key name on the field’s properties will force the app to store a dictionary of Key: Value pairs on the device for later use.


To demonstrate this follow these steps:



  1. Start out with a “Data Entry” screen type
  2. Add a choice field to your new form called “Customer”
  3. Add some choices either by adding static text or connecting to an existing data source
  4. Scroll down on the “Customer” field’s properties until you see the option “Bind to Global Value”
  5. Type in the word “Customer”.
  6. Next add a text field to your form called “Address”
  7. Scroll down on the “Address” field’s properties until you see the option “Bind to Global Value”
  8. Type in “Customer Address”
  9. Put your form in TEST mode or Publish
  10. Now login on the mobile device, and launch your new screen
  11. Select a Customer and type in an address
  12. Submit your form.
  13. Congratulations! You just created a dictionary for “Customer:Value” and “Customer Address:Value” to be stored on the device. When the app syncs, launch the same form and you will see both Customer Name and Address are prepopulated with your latest submission values. You can even bind fields from other screens to the same global values to persist the default values across multiple screens.


This is just one small, but powerful, example of how you can use global values on a mobile device with Forms On Fire. Enjoy!

Supported Devices

iPhone - iPad - iPod

Android

Windows 7 & 10

Standard Features

Powerful Drag N' Drop Form Designer

Secure Web Dashboard

Works Offline

Dispatch & Workflow

Image Capture, Annotation & Sketching

Audio & Video

GPS, Mapping & Navigation

Barcode & NFC Scanning

Signature Capture

Data Lookup From Your Systems

Excel & Word Templates

Email PDF


By Chriz Deszell | November 17th, 2016 | Form Design


Share by: