Hi guys,
I created a recommending system with webform with score and recommendations in the result page, depending of the answer the user chooses. Everything works fine. I just have one issue: I put my code (to calculate the score and display the recommandtaion in a table) in the Additional Validation, but when the user click on the submit button, he is redirected to a white page with the recommendation table. Actually, it's the same page (the url is the same) but the page is now entirely white, and it just displays the recommendation table.
Does anyone knows what's wrong? I'm not sure if it's a template problem, or anything else.
Please, help!
(I attached the code I use to calculate the score and display the result table)
Thanks.
Comments
Comment #1
quicksketchYou cannot print information during the validation (or submission for that matter). Any print statements will prevent rendering of the page, like you are seeing. Instead you should be theming your submission results page, see THEMING.txt for information on how to do this. Generally speaking, I do not provide support on how to write or debug any custom code.
Comment #2
voxy commentedhooo, that a bad new!
well, thanks anyway.
Comment #3
quicksketch