In ConfiForms you can setup redirect URLs to be used when a record is saved. This behavious is decoupled from a Form configuration and is set up via ConfiForms Registration Control macro.
And as one ConfiForms Form might have multiple ConfiForms Registration Controls pointing at it - you can set up different redirects.
Form in EDIT mode
Form in VIEW mode
Here is the storage format for the ConfForms Form (we have Registration Control together with the form, to simplify the example)
The form contains one field to select a page you want to edit
The field we hold this info is called "selectedPage"
So the code for "Redirect URL" in ConfiForms Registration Control is
It points to the value of the selected page, and as the object held in a page field is a "complex object" - we have all the info related to this page available for us
More about field types and values held can be found here Accessing field values and properties
If you are looking at what else can be done with redirects, check here Redirect to a created with IFTTT page
This small tutorial shows how to use a result from IFTTT macro to use in redirect parameters. Obviusly, you can combine the two - create a page with IFTTT, save result into the ConfiForms record and then us ethe concept described in the tutorial above to create a correct redirect
Any content page in Confluence can be accessed via it's ID
- VIEW MODE -
- EDIT MODE -
You can override the default redirect timeout by adding |timeout_in_milliseconds to redirectUrl parameter in ConfiForms registration Control macro
Will override the redirect timeout to be 5 seconds