0

I have multiple Woocommerce product pages which would only allow users who had answered a question correctly to view. Each product page would have their own question and should be treated separately.

Questions would be multiple choice, users must be logged in and only get one chance to answer.

I've been using Gravity forms to set up a multiple choice question which only allows one attempt per user. After that i need to check on the product page if users answered correctly.

Flow:

  1. User answers question
  2. If correct a 'correct answer' value is applied to user
  3. User visits product page, which checks for 'correct answer' value
  4. If 'correct answer' value exists, allow access, if not show error message.

I'm assuming Javascript would be the best way to handle this, but struggling to find a solid starting point.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.