i have a webform
with a lot of fields(i am making some kind of calculator for my needs) and after submit i need to show custom output under my webform.
In hook_form_alter
i have added custom submit handler
$form['#submit'][] = 'common_webform_client_form_1562_submit_handler';
and after submit i need to show my results on same page.
function common_webform_client_form_1562_submit_handler($form, &$form_state) {
//some logic here
//redirect to node with my webform
$form_state['redirect'] = 'node/1544';
}
As i can see i cannot modify or add anything to a $form
i thought i can add #suffix
to webform and attach my results but i can't, should i do it with Drupal.settings
and grab it with javascript
? or is there another option?