Binding - Overview
A binding is an association that you create between two or more objects. In Logiforms, bindings can be used for something as simple as converting a date of birth field to an age field, to calculating a dollar total including taxes based on the selection that a form user made.
Binding is applied to a new field that the form user does not edit. For example, you may create a field called age, and add binding to it which looks at the date of birth that the user entered and calculate their age. The age field might even be hidden so that only people reviewing the form see it. Or you might create a field called Order Total and apply binding to that field that calculates a subtotal based on items selected, adds a tax rate based on the address, and formats it all as currency. That field would be visible on the form but the user could not change its value.
Bindings can be used to:
- Add up fields on your form using a Mathematical Formula
- Join form field values together using string concatenation
- Use conditional logic (IF/THEN)
On This Page
- Applying a Binding to a Form Field
- Applying a Binding to a Free Text Header
- Applying a Binding to a Label Element
- Applying a Binding to a Multi Choice Field
Applying a Binding to a Form Field
When you apply a binding to a form field, you are creating a binding that will update the value of the field. To attach a binding to a field:
-
Click on the field element on your form or in the form outline panel.
-
In the Field Properties > Field General Settings panel, find and click Bindings.
-
The Binding Editor window will open and you can write the Binding.
Applying a Binding to a Free Text Header
The FreeText Heading element supports the use of bindings or wildcards used within the headings text body. Within this element's Text property you can inject wildcards in the same way you do within, for example, an autoresponder email. The wildcard values in the Text property are replaced with values from the form. The alternative is to use the Binding property to write a binding statement. If a binding statement is used it will take precedence over any value entered in the Text property. &
- Click on the FreeText Heading Element on your form or in the form outline panel.
- In the Header Properties > Header General Settings panel, find and click Bindings.
-
The Binding Editor window will open and you can write the Binding.
Applying a Binding to a Label Element
The label element is identical to the Free Text Heading element. It supports a Text value or a Binding value. The difference is the label element displays a caption and a line of text. It aligns with the other fields on your form. It is used, most often, to show the result of a calculation with a caption like "Total" or "Shipping Cost".
- Click on the Label Element on your form or in the form outline panel.
- In the Field Properties > Field General Settings panel, find and click Bindings.
-
The Binding Editor window will open and you can write the Binding.
Applying a Binding to a Multi Choice Field
- Select the Drop Down, Checkbox or Radio Button on your form and open the Field Values window.
- In the third column for each option, enter the numeric bind value. Depending on your business requirements, this might be the cost of the entry, or it could be a score. The value for each selection can then be used in a binding applied to a subtotal or a total field.
0 Comments