Naming your controls will make referencing them much easier.
All controls on a form must have a name that is unique within the entire form.
When you add a new control, Orbeon will automatically name it based on type and sequence added, such as:
These names are functional, but not that usable.
Control names are used as the variables that you'll reference when you do things like:
It's a lot easier to remember a name like dayRate than it is control-32.
The Control Name field is found in the Basic Settings tab of the Control Settings.
The Control Settings are where you can also:
Consider adjusting control settings when you've placed and sized your control on the form before going onto the next control. This will help limit the chances you forget something.
Controls need to exist and be named first
If you try to create some sort of condition or calculation that refers to a control that doesn't exist yet, Orbeon will mark your expression (formula) as invalid. This helps prevent typos and logic errors.
You'll want to name your controls in a way that's easy to recognize and type in formulas.
Perhaps the most common convention is called camel case, where:
Examples of this convention are:
Another common convention is using hyphens between lower-case words:
Camel case has generally been around longer, is quicker to type, and easier to recognize as a variable amongst a bunch of other function and process names. Consider using this convention as your default one.
Also consider conferring with your developers for their preference. If you expect your forms will be interacting with other systems, it could be helpful to align with them and their expectations.
When naming your controls, try to:
It's okay to vary your names. Consistency across your team and developers just helps to quickly identify data elements and match things up.
Realized that you need to change givenName to applicantGivenName? No worries.
Orbeon is quite 'smart' when it comes to managing control names and variables. If you change a control name, any formula referencing that control is updated with the new name automatically when you save the form.