I want to pass values from a page , having a CQ form component and on click of submit along with storing data in CQ, i would want to send the data to the "Thank you" page configured in the Form Component "Start of the form". Is there any best practice to pass the data to the Thank you page along with storing the data in CQ.
Kindly let me know.
One way of doing this could be to implement your own servlet/filter.
This could handle the data from the form and store it accordingly in CQ.
Later on it could also pass variables to the "Thank You" -page which it could redirect to.