Skip to main content
Participating Frequently
September 21, 2016
Question

Still not able to dynamically add a variable's (string) value into a Text Entry Box in courses published as HTML5

  • September 21, 2016
  • 2 replies
  • 528 views

I have just discovered that Captivate 9 is still unable to dynamically load a string variable into a text entry box when a course is published as HTML5.

I have been using Captivate for over 3 years now which has cost me (and anyone else facing the same issue for that period of time) a lot of money and yet I am still being frustrated by the failure of the Adobe Captivate development team to solve this issue.

The last reference I have found in the Adobe Forum concerning this problem (see here: https://forums.adobe.com/message/8154959#8154959) dated 09/12/2015.

In this posting, a member of the Adobe team named Mohana accepts that the above is a real issue and says thanks for reporting it, but still the bug remains unresolved.

Does anyone know of a hack that will allow me to dynamically load a string variable into a text entry box?

This topic has been closed for replies.

2 replies

Inspiring
October 17, 2017

It took me forever to find this solution! Realizing this post is from 2016, hopefully this helps someone out.

$("#myTEBFieldName_inputField").val("Whatever text you want to be inserted into the field.");

Captivate adds "_inputField" to the end of your text entry box object name. So you'll need to be sure to add that to the end of your object name. You can input any value you wish to replace the string with; it can be blank ("") to clear the box completely.

One thing you'll need to remember is that when you do this, it doesn't automatically update the variable attached to the input field. Once a user starts to type into the field, the variable will update. You can manually set the attached variable when you reset the text entry box value. This way if they hit the button associated with the field, it will populate the proper text, if needed.

EX:

$("#myTEBFieldName_inputField").val("Whatever text you want to be inserted into the field.");

myVar = "Whatever text you want to be inserted into the field.";

Inspiring
October 18, 2017

Developer2011,

Thank you for posting that solution, it looks like exactly what I need. I will try it in the next couple of days.

Cheers.

Peter

RodWard
Community Expert
Community Expert
September 21, 2016

Is this the sort of thing you were trying to do?

Text Entry Box Behavior | Infosemantics Pty Ltd

Participating Frequently
September 22, 2016

Hi Rod, thanks for your reply. I don't have CpExtra so I can't try your suggestion to see if it solves the problems I have been having since purchasing and using Captivate through the last 3 versions. I am reluctant to spend any more money on a purchase of CpExtra just in case it doesn't fix the probem. Also I don't see why I should have to pay for a fix when Adobe themselves should have fixed this issue ages ago.

RodWard
Community Expert
Community Expert
September 22, 2016

I understand.  I just wanted you to be aware that a solution DOES exist.

We developed this widget to fix a large number of annoying limitations because we still feel Captivate is the best e-learning authoring tool on the market and its many advantages outweigh its well-known flaws.  Ditching Captivate and moving to another tool didn't seem like it would leave us ahead in the long run.

But if you feel it's preferable to live with the issues that this widget would fix, I respect your decision.