Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
I am currently making something where I need the player to typ in the correct answer in a field, and if it's correct LiveCode needs to go to the next page or some other page I typ. But I cannot find the codes to do so. can anyone help?
Thanks
Make a stack with two cards... put a field onto the first card, set the dontwrap of the field to true... and put the following script into the field script... If the correct text is answered, in this case "Happy Christmas" then you will be taken to the next card...
The field must be unlocked, as Dave mentioned, but i would include a button that the user must press when satisfied with the text in the field. Though it is possible to use the returnInField message, the action of pressing return once the text is "complete" is not necessarily intuitive or obvious.
But those are details. Dillinger, you should play with the lessons and other beginner resources. Your project is a perfect first application. Do embellish it endlessly, even with useless extra functionality, just to become fluent with the structure of LC and to start to build a decent vocabulary. For example, in the above discussion, can you see your way to having the correct text, once the last char is entered, automatically go to the next card, without pressing return or another button? This is not likely to be what you want, but is just an example of the sort of extra stuff you might play around with in order to learn. Write back anytime with your successes and problems.