how do I post a feedback message on a drupal form
Posted on 2010-08-12
I have a webform where I want to add up the score for the selections made on the form, e.g. the user gets from 1 to 5 points for each answer, and give the user a message based on his score. I thought about using a markup field on the webform, but it seems that I cannot set the value of a markup field.
I set up the webform and I know that I can write the code in the 'additional processing' for the form.
How do I access the field values to add up the score and more importantly,
How can I display the feedback after the user hits submit. I want to give them their score and a message like 'great job' or 'needs improvement'.