Div |
---|
|
On this page Table of Contents |
---|
maxLevel | 2 |
---|
exclude | On this page |
---|
type | flat |
---|
separator | | |
---|
|
|
Description
Provides a user form with input fields before rendering the body of the macro. Form fields will be used to replace variables in the body prior to rendering. Field values can be provided by user interaction, pre-defined variables, or 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. Normally, values will be provided by a user submitting a form from the page based on the replace parameter. Default values can be specified.
This macro may have restricted use for security reasons. See Macro Security for Confluence and consult with your administrator for details.
Section |
---|
Column |
---|
Warning |
---|
| If you continue to use legacy wiki markup, you must assign a unique id (see the id parameter) if there are more than one run macros on the same page. In this case, the default id generated in wiki mode is always 1 which only works correctly if only 1 run macro is on the page. Either convert the macros to rich text or add unique ids. |
|
|
The run macro provides a form with specified input fields, settings, and parameters that you define within the editor. The values input into the form fields will be used to replace variables in the body of the Confluence page before it is rendered. Form values can be provided as:
- User interaction - a user inputs data into the fields you've defined.
- By using Pre-defined variables.
- By including request parameters (from the URL).
Any text in the body of the run macro will be replaced by:
- the value when the text begins with '$' immediately followed by a key found in the replace parameter list (see Field types for details). 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.
- dynamic text usingtext using any Field key parameters that begin with '$' followed by a Field key.
...
Table plus |
---|
border | 0 |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
columnAttributes | style="border:0;width=5%;",style="border:0;width=65%;",style="border:0;width=30%;max-width=30% !important;" |
---|
id | steps_table |
---|
enableSorting | false |
---|
enableHighlighting | false |
---|
|
Insert the run macro on a Confluence pageCreate a Confluence page that will eventually contain the form you would like presented to users within your organization. - Create a page named Incredible Form in a space accessible to the desired audience.
- Click Save to save the new page.
- Edit the Incredible Form page.
- Select Other macros from the top menu.
In the search box type 'Run' and select Run with a user form and parameters from the macro suggestions. - Click the Run macro from the list of available macros.
- Click Save settings.
| Image RemovedImage Added
|
|
Info |
---|
Encode variablesYou might want to encode run macro variables before rendering the output. Use urlencode or base64 encoding options with a prefix '$variable_' in the macro body to encode the intended variable. For example, use $alist_base64 to endcode the alist variable. |
...