Forum Discussion
Advice wanted--How to make a text entry populate from existing trigger?
.
- HoneyTurnerCommunity Member
Each time your user total changes, I would have it trigger a check to see if it's correct.
If it is, set an offscreen object to "selected". If it's incorrect, set the offscreen object to "normal".
e.g. if vChange is a variable containing the current amount of change and cChange is a constant programmed with the required amount:
When vChange changes, if vChange = variable cChange change state of Answer to Selected, else change state of Answer to normal
Set your quiz as multiple choice and have the correct answer be the offscreen object "Answer". So when you submit, it's only checking to see if the offscreen object has been selected.
- valerieshawCommunity Member
Thank you so much for the suggestions--I'm not sure that I understand, regrettably. When you say "trigger a check to see if it's correct" do you mean through the submit button?
- HoneyTurnerCommunity Member
I'm glad to see you got it working.
When I use the first solution, I usually have it check each time there's a value change. You could actually have it automatically submit when they hit the right value if you wanted. But you could also wait until they submit and have it do the check just once before processing the submit.
- HoneyTurnerCommunity Member
I just looked at the other quiz options. It looks like you could also Numeric graded question by assigning the calculated total to variable NumericEntry
- valerieshawCommunity Member
Okay, I switched it to Numeric and then changed the variable and now it works perfectly, thanks!