
When you design a composite form, you have to associate it with a specific form template from which form instances are generated at runtime. This example shows you how to model the layout of a form for distribution of social benefits.
The Adobe LiveCycle Designer opens in a separate window.
You can see the structure with all form context parameters that you added in the previous steps of the wizard.
They appear on the form as text fields labeled with their technical name. If you wish, you can change the text of the labels according to your specific needs.
This is an example of how the form layout may look at the end:
To implement the calculation, use the scripting functionality provided by the tool. You can find more information about how to do this in the next step of the procedure.
Select the element from the body pages, select its initialize property from the Show dropdown box and enter the corresponding script statement.
In script statements, you should use as variables the technical names of the parameters. Before you start writing, make sure you know the technical names of the fields you are referring to.
medical = "0"
education = "0"
dependent = "0"
unemployment = "0"
pension = "0"
total = medical + education + dependent + unemployment + pension
Each time the values in the fields are changed, the Total field is automatically updated.
You have added a template to the composite form object. You can configure other aspects of the object or finish the wizard.