Hello, I am working with Adobe Captivate 9 on Windows 7. Well, I have created a push button, if I push the button Outlook will open automatically with a receiving address and subject heading which I selected before, like this: "email@example.com?subject=Feedback". This is working well.
Now I want to create a variable inside my subject heading like firstname.lastname@example.org?Feedback + variable
Have you tried building the URL with an advanced action that combines the mailto with the variable, then opens the result?
In a Standard or Conditional Action there is no option to insert a variable as the target mailto or URL address. So even if you were able to assemble all the bits of the mailto address using a number of different variables, the end result would still need to be a variable that you had to insert in the Open URL or File target field. Currently you can only paste a value or manually type it.
Have you found a way to do this with variables?
You were right, I haven't been able to build this directly in Captivate, so far!
var v_Subject = document.Captivate.cpGetValue('m_VarHandle.TEB_Subject');
var v_Body = document.Captivate.cpGetValue('m_VarHandle.TEB_Body');
var URL_self = "mailto:email@example.com?Subject=" + v_Subject + "&Body=" + v_Body;
var win = window.open(URL_self, "_self");
I created two Text Entry Boxes, and assigned them to variables called: TEB_Subject, and TEB_Body.
Note that this functionality is dependent on the user's OS, browser, and mail application configuration.
Here are the details of the Advanced Action:
The variable 'v_URL_Build' is called repeatedly and added to each time, this is a technique called concatenation. The first line has the hard-coded email for the recipient, and a Text Entry Box called TEB_Body,
The second line sets the value of v_URL_Build to itself plus the static text "&Body=".
The third line sets the value of v_URL_Build to itself plus the value of TEB_Body.
var js_URL_Build = document.Captivate.cpGetValue('m_VarHandle.v_URL_Build');
var win = window.open(js_URL_Build, "_self");
This line creates a variable JS_URL_Build and copies the value from the captivate file into it.
The last line opens a URL in the same window as the Captivate file, if it is handled correctly by the users computer OS, web browser, and mail application it should open a mail message:
Note that this was tested with Cp8, Windows 7, Google Chrome, and MS Outlook.
I would like to know what is wrong with my coding. I have tried to copy the same format that you presented, but when I click the button during preview, nothing happens.
Buena tarde RamilS
Exactamente que es lo que necesitas hacer, Enviar un correo que contenga "subject" y "body"...... Agregar a dicho correo alguna información que este contenido dentro de alguna variable que has creado o que es por defecto del sistema?