Eximee internal redirections
Eximee internal redirect is a redirect from a form to another Eximee form, in which the platform itself passes selected parameters to the target form, for example the source of entry or channel. The form author does not have to append them manually to the redirect address. The list of passed parameters is set by the environment administrator in the file webforms.xml.
Marking a redirect as internal
To mark a redirect as internal, select the field in Designer Eximee internal redirect. The field is available:
in a navigation action – in the action row, under the method and field Redirect link (see Navigation actions),
in the REDIRECT action – in the action details, in the row Redirect type (see Actions).
Parameters are appended to the marked redirect:
after moving to the next page, going back to the previous page, and saving the application (navigation actions),
when going to a selected page, for example with the buttons Back and Next browser,
after calling the REDIRECT action.
A redirect without the field selected works as before – the platform does not change its address.
Configuration
The list of parameters is specified in the file:
/etc/eximee/webforms.xmlin the element eximee.internal-redirect.parameters, as comma-separated names:
Default value: empty list. Then a redirect marked as internal does not receive any parameter.
Rules for appending parameters
The redirect receives every parameter from the list whose name is not already in the address. A parameter specified in the address by the form author retains its value, including an empty one (for example
idKampanii=).Parameter names are compared case-sensitively:
idKampaniiandidkampaniiare two different parameters.The parameter value is the value of the form session variable with that name at the time of redirection, including when changed by the form logic. Exceptions:
channelgets the valuenative, when the form runs in a mobile app; outside it, the parameter is not appended,SOURCEgets the source with which the form was launched.
A parameter without a value is not appended.
For GET method, parameters are added to the end of the address, in the order from the list, before the fragment
#. For POST method, they are placed in the fields of the submitted form. Values are encoded so that the target form reads them unchanged.
Example
The parameter list in webforms.xml is SOURCE,channel,idKampanii. Navigation action with the field selected Eximee internal redirect has GET method and redirect link:
The client opened the form in the browser with the parameter SOURCE=www, and the session variable idKampanii has value autumn. After moving to the next page, the target form will open at the address:
SOURCEwas appended before fragment#start.idKampaniiretained the valuespringfrom the redirect link.channelwas not appended because the form runs in the browser.
If the action had the POST method, the target form would receive the fields idKampanii=wiosna and SOURCE=www, and the redirect address would not contain parameters.
Troubleshooting
If a parameter from the list did not reach the target form, check whether:
the field is selected in the action Eximee internal redirect,
the name in
webforms.xmlhas the same letter case as the session variable,the redirect link already does not contain a parameter with that name, including one with an empty value,
the session variable has a value at the time of redirection,
the Webforms application was restarted after changing the list.
Last updated
Was this helpful?
