Forum Discussion

valerieshaw's avatar
valerieshaw
Community Member
2 months ago

Advice wanted--How to make a text entry populate from existing trigger?

.

  • HoneyTurner's avatar
    HoneyTurner
    Community 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.

    • valerieshaw's avatar
      valerieshaw
      Community 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? 

       

      • HoneyTurner's avatar
        HoneyTurner
        Community 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.

  • HoneyTurner's avatar
    HoneyTurner
    Community 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

    • valerieshaw's avatar
      valerieshaw
      Community Member

      Okay, I switched it to Numeric and then changed the variable and now it works perfectly, thanks!