Text Entry variables not triggering

Jan 18, 2024

I am making a text entry input box(slide 1.9 of attached). I have a variable "SMART_goal" set up to determine when the "next" button is revealed. I had it working when it was triggered by the object losing focus  on the last text entry box *Only if the SMART_goal variable is now = true. This is so the learner has to enter something for all of the boxes before advancing. For some reason i think my variable isn't functioning and am at a loss troubleshooting.

Could someone please take a look?

9 Replies
LinguaGraphics Articulate-Team

Hello! Instead of hiding the button, you can consider disabling it. While it's not exactly the same as hiding, this alternative might also work for your needs. Simply update the instructions accordingly to reflect the change in button state. I have just tested it and works like that.

Walt Hamilton

I'm very suspicious of using the table's loss of focus to fire the trigger. How would it get focus? The text entry boxes are on top of the table. Does the learner have to fill in the text entry boxes, then click the table so it has the focus, so it can lose it? Actually, I'm not even certain the table as a table can have the focus.

Check the attached sample for a method that works. Personally, if it were mine, I would write a trigger to  show the Next button when each of the text_entry variables changes, if all the others are not blank. It takes more triggers, but is completely reliable, and also allows the learner to fill in the text entries in any order.

I skipped the intermediate step of setting SMART_goal to true, but you can still do that, if you need it somewhere else.

David Moerman

Thank you very much for your input. I will try the disabling method. Yes, i originally had the next set to change when the audio completes, only if all the text entry boxes did not equal blank. Then i added the t/f variable in an effort to make sure all the boxes were filled before changing the state of next to normal. 

David Moerman

Any tips for how to get the next button(or a submit button) to appear as the person is filling in the final text box? As opposed to having the user click out of the last box (instead of using text entry loses focus)? I guess i could send all the java through the submit button, then have each box's text entry triggered by clicking on any of the other ones. But that seems cumbersome