I am writing a simple code to show a message box when it meets certain criteria. It work fine when I coded it in Javascript. However, when I revise it a little bit for the purpose the Wix website, it doesn’t work. Don’t know why. Please help. Below is the codes that I use.
What screen elements are the message boxes? Are they Box Elements ?
I attached a text boxes to the message boxes to be shown if the criteria is correct. I am not sure if this answers your question. Sorry, I am new to coding.
What do you mean by “attached text boxes to the message boxes”. You will need to provide more details in order for us to assist.
The above is what I did. I created a container box. On top of that container box, I attached a text box to write my text message. I gave a name to each text box in the id field such as below with a default value as “hidden”.
Thank you very much.
You do show() twice for each box. You should only be doing one.
What works? What doesn’t work? Where are you calling your code? Maybe the if statements aren’t working?