1. What will you learn
You will learn how to use existing @Formula in your documents.
2. Task Description
You happen to have existing forms with well designed default @Formula and
Input translations you want to re-use. Enhance the example from the previous
form to take advantage of back-end @formula
3. Detailed Steps
1. Open the Notes form from Exercise 20 and
enhance the field color with the following default and input translation
Input translation: @Trim(@ProperCase(@thisValue))
2. Add an input translation to the shape field:
... and a default value of your choice.
3. Open the xPage, select the xPage element,
open the all properties tab
4. Navigate to the data/data/dominoDocument
property and set computeWithForm to “both”
Test the form
4. The Result
This behavior is slightly different from the classic “default value”/”input
translation” behavior. ComputeWithForm executes input translation formula
even for new documents onLoad.
5. Things To Explore
does the behavior change when you select only one option?