Hi,
Depending on visitor’s choice in a select list in a form, I would like to redirect to the page defined in the select list.
Can we do it at the process
step or should I do it more informdata.html.twig
or with my own form processor ?
What I would like to have (in the idea)
form:
action: /home
name: newsletter-list
fields:
-
name: newsletter_list
type: select
default: info
options:
info: 'Infos'
animation: Animation
animation-laser: 'Animation Laser'
animation-miniji: 'Animation Miniji'
animation-420: 'Animation 420/470'
animation-opti: 'Animation Optimist'
animation-pav: 'Animation Planche à voile'
animation-habitable: 'Animation Habitable'
animation-ecole-de-voile: 'Animation Ecole de Voile'
animation-competition: 'Animation Compétition'
buttons:
-
type: submit
value: Submit
process:
-
message: 'Thank you for your feedback!'
-
redirect: '/newsletter/{{ newsletter_list }}
I’m in a modular page also for the context.
So far, seems content for redirect
is never intrepreted in any ways :-/
Thanks,
Nicolas