Form: Difference between revisions

Jump to navigation Jump to search
1,623 bytes added ,  3 September 2019
Line 272: Line 272:


Many advanced features involve adding [[business logic]] to your view. Add scripts to your form, triggered for example when users click a form tab or change a value. See [[Rules editor]] for more information.
Many advanced features involve adding [[business logic]] to your view. Add scripts to your form, triggered for example when users click a form tab or change a value. See [[Rules editor]] for more information.
== Placeholder text ==
If you want to advise your users what to enter into the field, you can use this feature. Placeholder text is text that’s displayed in an empty field and provides either a hint to users at what to enter into that field, or some specific instructions. Once user taps on the field to enter data there, the placeholder text is cleared.
There are two options for how to enter such text:
* Use [[localization]] to add static placeholder text.
* Use form rules to add static or dynamic placeholder text.
=== Using localization ===
# Navigate to [[Localization]] on project level or on organization level.
# Click '''Add''' to add a new string.
# As '''ID''', enter <code><entity name>.<field name>.empty</code>, for example <code>account.address1_city.empty</code>.
# As Label, enter the placeholder text, for example <code>Please enter city</code>.
# Click '''OK''' to save the string.
=== Using form rules ===
You can use [[rules editor]] to set placeholder text as a static string or even change it dynamically.
In this example, in OnChange rule, the placeholder text for address1_line1 is static, and when user enters data to the address1_line1, the placeholder text for address1_line2 and address1_line3 shows up.
{| class="wikitable"
| '''Step''' || Form.address1_line1.PlaceHolderText || Assign || Enter street here
|-
| '''If'''
|-
| '''Condition''' || Entity.address1_line1 || ContainsData ||
|-
| '''Then'''
|-
| '''Step''' || Form.address1_line2.PlaceHolderText || Assign || This is optional
|-
| '''Step''' || Form.address1_line3.PlaceHolderText || Assign || This is also optional
|}


[[Category:Woodford]]
[[Category:Woodford]]

Navigation menu