Captivate Widget: Variables In The URL of a Button

del.icio.us Tags: ,

This is an upgrade to the previously posted widget Variables in Button URL.  This upgraded version will work with Adobe Captivate 4 and 5.x and is built on the WidgetFactory Platform.  Unlike the previous version, this one supports both success and failure “Open URL or File” actions.

The Cp Author would insert their variables surrounded by double dollar signs in the URL field of the button:

Variables in the URL

When the user clicks the button at runtime (or fails to click the button), the variables are replaced with their respective values as shown:

URL at runtime

Requirements:

The Captivate 4 or 5.x project must be published for AS3 and FP10+.

September 30th, 2011 – Updated the widget to WidgetFactory 5.5.1 and fixed the scaling issue so that using 100% width and height in your .htm file is now possible.

Download Widget

You can find the Cp6 version here.

Tags:

  • Anonymous

    This is great. Do you know of a widget that will bring URL variables into Captivate?

  • Jim Leichliter

    @Anonymous: You can achieve that through JavaScript here: http://jimleichliter.blogspot.com/2010/06/receiving-variables-through-url-query.html

  • Ouija

    Please update the script for variables on slide entry/exit url fields please! :)

  • Ouija

    I also noticed that when using a widget with Captivate 5.5, the “tab” key doesn’t select the second text input box on my first slide (where I have 2 TIB, one for your name and one for your email).

    When I don’t use this widget, I can use the tab key to move from the first input box to the text, but when using the widget, pressing tab from within the first text input box selects the submit button instead of the second text box.  I’m somewhat new to Captivate, so maybe there is a different explanation or fix for this, but I just noticed that it stops working when using a widget (and not just this one in particular)

    • Anonymous

      @dc627c72759bd188682b14cdfb15d39d:disqus  Ouija:  Yeah… Tab order is really slippery in Captivate.  ”Supposedly” you can change the stack order on the timeline to change the tabbing.  Sometimes this works, sometimes not.  There’s a good widget by Chris Dorna that fixes this:http://www.dorna.nl/?p=509

  • JimLeichliter

    You can find the Captivate 6 version of the Button URL with Variables Widget here:
    http://captivatedev.com/2012/09/17/adobe-captivate-6-x-free-widget-button-url-with-variables/