Skip to main content
ricgINX
Participating Frequently
July 26, 2017
Question

Default text in TEB

  • July 26, 2017
  • 4 replies
  • 675 views

I have recently upgraded to Captivate 2017 from 5.5 and have previously use a widget "Variable in the default text for TEB (AS3) Version 5.0 by Jim Leichliter and I cant find an update for this widget

The use case is the user is asked to enter details to complete a form field - if they pressed enter default text would appear, but the widget is not working in the latest version of Captivate.

In the TEB I have the variable $$v_defaultTEB$$ (The default TExt) which is assigned to a variable 'v_eventDesc' and an advanced action of

IF 'v_eventDesc' is equal to $$v_defaultTEB$$ >>> Action Assign v_eventDesc with "This is where I enter details" and GO to Next Slide

ELSE Go to Next Slide.

When playing the slide the default text of $$v_defaultTEB$$ is showing on the screen and the user starts typing after the default text or can delete it - this is not acceptable.  It should not be showing on the screen

Like I said this worked fine in Catpivate 5.5 and I need to find a solution as I am doing a number of software simulations that have a large number of TEB's.

This topic has been closed for replies.

4 replies

ricgINX
ricgINXAuthor
Participating Frequently
July 28, 2017

thanks lilybiri - there's no human error - the only thing different between how I had it previously in Captivate 5.5 (which published as SWF and HTML which will still suffice ehich is why considering going back) to now is I had the old widget of Jims on the slide - the set up is exactly the same - apart from having the CPExtra widget installed.  If I play it back in SWF it assigns the variable as expected - so why doesn't it in HTML5 - this I cannot understand.

Ive added some screen shots - The ELSE on the action is 'Go to next slide'

ricgINX
ricgINXAuthor
Participating Frequently
July 28, 2017

The types in TEB and presses Enter to advance to next slide where v_eventDesc should populate with either the default text as shown above or whatever the user has entered in the TEB

Thanks

Lilybiri
Legend
July 28, 2017

In the articles I pointed to, I will change the value of the associated variable to the TEB, in your example v_eventDesc. I never inserted a variable as Default text. Since the default text is empty, why do you insert that variable? I described the use of an empty variable in a very old blog post, which is still daily visited:

Where is Null? - Captivate blog

If you want to check if the entry is empty, no need to insert a default text. Maybe I don't understand fully why you do this. Do you ever change that variable v_defaultTEB?

BTW Jim was a great developer, and a friend to me (although we never met IRL), he even developed some widgets based on my request (you can find their description in my blog as well). He decided for personal reasons to leave the business, a great loss for the Captivate community. I still cherish his JS training....

ricgINX
ricgINXAuthor
Participating Frequently
July 28, 2017

Ok - the CpExtra widget hasn't helped and I am at my whits end here.

I cannot see why its not working.

I am concentrating on html5 output but still cannot get the variable assigned with the default value.  The image on the OP showed the SWF output.  If I publish as SWF it does the same stil, ie: showing the default variable, but it does assign the value to the variable correctly - It DOES NOT assign the variable in HTML5 output

The variable $$v_defaultTEB$$ is a pre-defined variable with a null value.  This what I have been advised to do yet it still is not working - I've spent days on what used to work with no problems in Captivate 5.5 - strongly considering dumping captivate 2017 and going back to 5.5

Lilybiri
Legend
July 28, 2017

I used the CpExtra widget successfully as described in these articles:

Playing with Numbers - part 1 - Captivate blog

Playing with Numbers - part 2 - Captivate blog

It doesn't prove anything for your use case, just wanted to show examples. You gave too little detail (about the advanced actions and their triggering events) to see if there is a human error or not.

Since you want to publish to HTML5, going back to 5.5 will certainly not be a valid alternative.

Lilybiri
Legend
July 26, 2017

You definitely should have a look at the CpExtra widget by InfoSemantics, not only for this feature (Jim is no longer in the business) but for many, many other features. It is a real Swiss knife, that any Captivate developer needs to have in the toolkit.

ricgINX
ricgINXAuthor
Participating Frequently
July 27, 2017

Thanks guys.  We have used Infosemantics widgets in the past.

RodWard
Community Expert
Community Expert
July 26, 2017

If your intended output is now HTML5, you might find the CpExtra HTML5 widget can replicate the functionality you require.

http://www.infosemantics.com.au/adobe-captivate-widgets/cpextra/help/preference-variables/teb-behavior