hub.eb?material_id=193

Display fields values with controls


You can display a field's value as text on a page using && followed by the name of your field.

This allows you to display field values as uneditable text on a page without needing to use field controls.

For example, to display the total cost field value using a text control, you can set its text content to be:

 The total cost for this order is £ &&total_cost

When the form runs, this will display as:

 The total cost for this order is £ 0.00

Steps


1

Add a new text control to your page with the following text:

The total cost for this order is £ &&total_cost

Run the form and see the value of the text displayed.

2

Try giving the first and last name fields default values, and change the text control text content to:

The total cost for &&first_name &&last_name's order is £ &&total_cost

Run the form again to see the result.

Related