Could a selection field in a FormFolder be used to redirect?
I have created a custom FormFolder, using PloneFormGen. Within the FormFolder, I have created a page and added a selection field with value/label pairs equivalent to:
path (url) | company department -->i.e. http://Plone/reports/accounting|Accounting
I am wondering if it is possible to create an action override that would 'redirect_to' the 'selected' value in the selection field, something like:
'redirect_to:string:
For the redirection, just put something like:
redirect_to: request/form/my-selection-field
in the Custom Success Action field on the form folder's [override] panel.
If you need to do something more complicated, you can use the "Custom
Script Adapter" in the 1.1 alpha and end your code with:
request.response.redirect(request.form['my-selection-field'])
