Skip to main content
Known Participant
May 4, 2016
Question

Email Variable Value

  • May 4, 2016
  • 1 reply
  • 1390 views

Has anyone been able to email variable values using Captivate 9 HTML5 lessons with a button?

I'd like to send quiz results and a derived value using an action script.

Any help gratefully received.

Roger

This topic has been closed for replies.

1 reply

TLCMediaDesign
Inspiring
May 4, 2016

When you say ActionScript do you mean that you are using swf output?

To do this properly you do need to use an php page to send the email.

BatsninjaAuthor
Known Participant
May 4, 2016

Thanks for the reply, I probably need to clarify my requirements further.

I need to author stand alone HTML5 Captivate quizzes that do not rely on any external resources (i.e. an apache server with a PHP email handler for example). By Action script I mean the Advanced actions within Captivate. I want a button to open the native email client i.e. Outlook and populate the email body with content. I can get the following to work for IE but not Chrome sadly.

Text box set to Text_Entry_Box_1

Button with javascript:

myvar = window.cpAPIInterface.getVariableValue("Text_Entry_Box_1");

mailto_link = "mailto:"+myvar+'?cc='+myvar+'&subject='+myvar+'&body='+myvar;

window.location.href = mailto_link

Works great in IE11 but does nothing in Chrome

Thanks

Roger

RodWard
Community Expert
Community Expert
July 28, 2016

Hi Roger,

I'm running into a similar issue in Cp9 and thought you might be able to help.  I've built a 5 question multiple choice assessment (think personality assessment where any answer is correct) and once complete, user is shown the choices they've made on a results page (using advanced actions).  I need to be able to send the user these results.  Essentially I want them to click a button that fires an email to them with their results.  Make sense?  Is that something you can help me with.


The solution proposed above only triggers a new email to be opened in your end user's email client software (e.g. Outlook).  It does NOT automatically send an email without the end user's interaction.

Captivate's standard functionality does not include sending automated emails.  For that you would normally need to engage the services of a programmer who would then work out how to have data from the Captivate module transfer data to webserver-side pages to handle the actual email delivery.