Copy link to clipboard
Copied
How do I populate a Variable with info entered by the student in the Text Entry Box? I have created a Variable titled Var_EmpNo as a "container" to hold that information. Following the instruction to "Enter your employee number here -->" I have included a Text Entry Box using standard toolbar functionality, the name is Text_Entry_Box1. I have tried several approaches including:
Approach 1 Tested and Failed: Setting the On Success Action on the Text Entry Box to "Assign", selecting Var_EmpNo from the assign dropdown and entering in the "With" field the free form text "Text_Entry_Box1". This does not appear to populate the variable with the info entered in the text entry box, rather I suspect it is populating the variance with the words Text_Entry_Box1.
Can someone point me to the correct approach?
Thank you,
Steve
Copy link to clipboard
Copied
Hmmm, you seem to misunderstand something. An entry in a TEB is always sotred in a user variable. Captivate creates automatically a user variable with the same generic name as the TEB, like 'Text_Entr_Box1. I don't like that at all, because the normal policy in Captivate is to never use the same name twice. You can however when creating tghe TEB immediately type another name, that variable will be created. For that purpose click on the X button next to the name field. I explained this workflow long time ago, but it has not changed:
Save Time: Create Associated Variable for Text Entry Box while Defining this TEB - Captivate blog
Screenshots may have changed, but I hope you get the idea.
Copy link to clipboard
Copied
Lilybiri, I think this is the third time that this issue has come up in the last couple of weeks and shows the continuing need for the requested change. Hopefully folks at Adobe will take your request at heart to let us use your suggested workflow to change the name of the variable name at creation and not have to delete the default text-entry variable after we have created and assigned the TEB with the variable with our unique name.