Skip to end of metadata
Go to start of metadata

Summary

The form input field is a highly flexible field that can be used to take a variety of inputs, as well as providing 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

  4. (Optional) Set a label for the field, this will appear next to the field



  5. (Optional) Set a description for the field




  6. (Optional) Set a default value for the field. This includes velocity values with access to some velocity value fields.

  7. (Optional) Set the validation

  8. (Optional) Set the required parameter. Ensure that users must supply a value for this field.

  9. (Optional) Set Field width. Defines the horizontal width occupied by the field in the form.
     
  10. (Optional) Set Label width. Defines the horizontal width occupied by the label associated to the field.
     
  11. (Optional) Set CSS Class
     
  12. (Optional) Set CSS Style

  13. Save the macro to see a placeholder image of how the field will look on the saved page



  14. 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
  • No labels