Input Fields

Summary

The form input field is a highly flexible field that can be used to take a variety of inputs and provide validation of input.

Instructions

  1. Create your Form using the Forms for Confluence macro.
  2. Add the Forms -  Input Field macro to the form.
  3. Set a Name for the field.
    1. (Optional) Set a Label for the field; this will appear next to the field.
    2. (Optional) Set a Description for the field
    3. (Optional) Set a Default Value for the field - This includes velocity values with access to some velocity value fields
    4. (Optional) Set the Validation
    5. (Optional) Set the Required Parameter - Ensure that users must supply a value for this field

    6. (Optional) Set Field Width - Defines the horizontal width occupied by the field in the form
    7. (Optional) Set Label Width - Defines the horizontal width occupied by the label associated with the field
    8. (Optional) Set CSS Class
    9. (Optional) Set CSS Style
  4. Save the macro to see a placeholder image of the field on the saved page.
  5. Save the page to see the final field on your form.

Using Velocity Values with the Input Field

The input field provides access to velocity to capture logged-in users' information and adds this as the value for the field. We've limited the values you can obtain from velocity for security reasons. However, you can obtain velocity values using the following calls in the Velocity Value field:

  • $user.name
  • $user.fullName
  • $user.email
On this page