I'm using webform 6.x-2.3. I need to do additional processing after the form has been submitted. I put this in the Additional Processing -field:

print "test<pre>";
print_r $form;
print "</pre>";

I thought I could see the contents of $form or at least the word 'test' after submitting the form, but I can't see anything.
I included php tags. I have also the permissions to use php.

I'll try next to use the latest version of the module, even though in the release notes was nothing related to this kind of behaviour.

Any ideas what's wrong?

Comments

easp’s picture

I have done the same thing without seeing any of my print_r data.

My functions in additional processing get called correctly though. The page might be redirecting to the confirmation page before you see the print_r data.

quicksketch’s picture

It is getting called properly, it's just that print_r() won't show up because the code is run within an eval() call. I'd suggest installing devel module and using dsm() instead. You could also use the very manual approach to the same thing:

drupal_set_message('<pre>' . check_plain(print_r($form_state, true)) . '</pre>');
wpanssi’s picture

Thanks! I'll try dsm.

quicksketch’s picture

Title: Additional processing doesn't seem to work » Additional processing doesn't seem to work (print_r doesn't show up)
Status: Active » Closed (fixed)