Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Div
idProductTOC

On this page

Table of Contents
maxLevel2
excludeOn this page
typeflat
separator |

...

  1. User interaction - a user inputs data into the fields 
  2. Using Pre-defined variables
  3. Including request parameters

Any text in the macro body that begins with '$' immediately followed by a key found in the replace parameter list  (see Field types for details) will be replaced by the value. Typically, values will be provided by a user submitting a form from the page based on the replace parameter. When defining field types, default values may be specified.

...

Info
titleMacro Security

This macro may have restricted use for security reasons. See CMSP and consult with your administrator for details.

...

Using the Run Macro

The following steps will help demonstrate how to configure use the run macro . In the following example, we will create a simple form that prompts the user to provide responses to example security questionswithin a confluence page.

Image Removed
Table plus
border0
heading0
multiplefalse
enableHeadingAttributesfalse
columnAttributesstyle="border:0;width=5%;",style="border:0;width=65%;",style="border:0;width=30%;max-width=30% !important;"
idsteps_table
enableSortingfalse
enableHighlightingfalse


Insert the run macro on a Confluence page

Create a Confluence page that will eventually contain the form you would like presented to users within your organization.

  1. Create a page named Incredible Form in a space accessible to the desired audience.
  2. Click Save to save the new page.
Insert the Run Macro using the Insert Markup Menu
  1. Edit the Incredible Form page
and:
  1. .
  2. Select Other macros from the top menu.
  3. In the search box type "Run" and select "Run with a user form and parameters

  4. Click the Run macro from the list of available macros.

Image Removed

Image Removed

Add Fields to Your Form - Field Settings

Configure Display Settings
  1. Click on "+Add my first field"
  2. Under form element, let's select the text field type.
  3. Let's set the value of the unique field key to "pet".
  4. The field label will be visible to the user, so let's use "Name of your first pet".
  5. We can leave the field value empty.  This is where we could provide a default value or example. 
  6. To make things interesting, let's add one more field to our form. Let's capture the users birth year.
  7. Within the form element, select the date field type. 
  8. Set the value of the field key to "dob".
  9. Set the field label to "Year of birth".
  10. Let's define the date format as "YYYY".  This will automatically add form validation on the value entered by users to ensure it conforms. 

Image Removed

Image Removed
  1. Save Settings".



Image Added