Hello,
I am very new to Webflow and looking to make a geography game where you have to guess the country based on given hints. The player views the hint and uses a select field to guess their country then hits the submit button. I currently have the button set up to when pressed it hides the interactive features (the select field and button), leaving only the hint as well as showing a new easier hint and new chance to submit the right answer.
The answer and the hints are done with CMS that way I can easily generate a new page whenever I come up with a new quiz.
The problem is I need the submit button to do different things based on the select field selection.
- If no country is selected nothing happens.
- If a wrong country is decided it shows the next hint(functionality already done)
- If the selected country == the answer stored with CMS, show a you win popup
I am having a very tough time writing some custom code to change onClick interactions according to the select value.
I am very new so it is entirely possible I have a gap of understanding about a particular element and if so please feel free to tell me. Any advice on if this is possible and where to start or what to change would be very helpful. Thank you so much!
Here is my site Read-Only: Webflow - Geography Harry