Title: Custom function
Last modified: May 3, 2023

---

# Custom function

 *  Resolved [mr.goethe](https://wordpress.org/support/users/mrgoethe/)
 * (@mrgoethe)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/custom-function-7/)
 * Hi, 
   I need to make one custom function on my quiz, because it doesn’t exist 
   in default plugin options. I have a Quiz with multiple option (radio input), 
   and each question in one page. And I have selected the option that display if
   the selected answer is correct or incorrect. But now, I need to display correct
   answer when user select incorrect answer. The ideal method will be have a css
   class into correct answer, to put it in green when user have selected any answer.
   I don’t know how to do it… Can you help me and give a budget of this function?
   Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [sumitsanadhya](https://wordpress.org/support/users/sumitsanadhya/)
 * (@sumitsanadhya)
 * [3 years ago](https://wordpress.org/support/topic/custom-function-7/#post-16709889)
 * Dear [@mrgoethe](https://wordpress.org/support/users/mrgoethe/) ,
 * Thank you for the explanation.
 * This function is already available in the current version of the QSM.
 * You have to enable the “Show results inline” option under the option tab of your
   quiz.
 * Please check below-given screenshot link for your reference.
   [https://nimb.ws/YxATi0](https://nimb.ws/YxATi0)
 * Once this settings is activated and if user select the wrong answer and it will
   disaply the “Wrong! You have selected wrong answer.” message and highlight the
   correct answer with green color.
 * Please check below-given screenshot link for your reference.
 * [https://nimb.ws/LI5Qzy](https://nimb.ws/LI5Qzy)
 * Do let me know if you still need more help on this issue.
 * Looking forward to your reply.
 * Regards,
   Sumit
 *  Thread Starter [mr.goethe](https://wordpress.org/support/users/mrgoethe/)
 * (@mrgoethe)
 * [3 years ago](https://wordpress.org/support/topic/custom-function-7/#post-16709941)
 * Hi again and thanks for your reply.
   I have already selected this option, and 
   as well “Add class for correct/incorrect answers”, but it doesn’t works… I don’t
   have class assigned and I don’t have correct answer selected (no text, no green
   color…). I don’t know what can happen.Can you help me?
 *  Thread Starter [mr.goethe](https://wordpress.org/support/users/mrgoethe/)
 * (@mrgoethe)
 * [3 years ago](https://wordpress.org/support/topic/custom-function-7/#post-16710034)
 * Can I provide you a URL with my quiz example?
 *  [sumitsanadhya](https://wordpress.org/support/users/sumitsanadhya/)
 * (@sumitsanadhya)
 * [3 years ago](https://wordpress.org/support/topic/custom-function-7/#post-16711232)
 * Hi [@mrgoethe](https://wordpress.org/support/users/mrgoethe/) 
   Can you please
   tell me the QSM version you are using right now.If possible please share the 
   quiz URL so I will check and help you to fix the issue.Regards,Sumit

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom function’ is closed to new replies.

 * ![](https://ps.w.org/quiz-master-next/assets/icon-128x128.png?rev=3158087)
 * [Quiz and Survey Master (QSM) - Easy Quiz and Survey Maker](https://wordpress.org/plugins/quiz-master-next/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quiz-master-next/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quiz-master-next/)
 * [Active Topics](https://wordpress.org/support/plugin/quiz-master-next/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quiz-master-next/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quiz-master-next/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [sumitsanadhya](https://wordpress.org/support/users/sumitsanadhya/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/custom-function-7/#post-16711232)
 * Status: resolved