I'm using LCD (most recent version) and I'm having trouble building a string -- obvious newbie! :-)
I have a field called PrimaryEmailAddress where the user specifies their email address.
I have created a button, when clicked, will open a URL and pass the email address as a parameter.
Using Javascript, I though I could do the following:
var cTheEmail = PrimaryEmailAddress.rawValue
var cTheURL = 'http://www.MyWebsite.com/MyUpload?email='+cTheEmail ;
app.launchURL(cTheURL);
Suffice it to say, but this does not work and I think it has something to do with how I'm filling cTheEmail variable.
What am I doing wrong?
Solved! Go to Solution.
Views
Replies
Total Likes
Your 1st message was in the public forum but its Ok I got the message removed before the file was available so no one could get it.....send it to livecycle8@gmail.com (only I have access to that)
Paul
Views
Replies
Total Likes
Seems to be working fine for me. Put an app.alert(cTheURL) before you launch the url and see if you get the right string. If that works, try hardcoding the URL in the launch command and see if it will launch for you.
Paul
var cTheEmail = ecPrimaryEmailAddress.rawValue;
var cToPass = 'http://www.MyWebsite/MyUpload?email=' + cTheEmail ;
app.alert(cToPass);
If I execute the above, when I click the button, nothing comes up.
If I replace the cTheEmail Variable with the following: var cTheEmail = xfa.resolveNode("ecPrimaryEmailAddress");
then the following alert pops up,
http://www.MyWebsite/MyUpload?email=null
Note that I DO have a value in the primary email address.
Views
Replies
Total Likes
That link goes to a dead link. Sounds like the object is not found. Rather than do a resolveNode get rid of that line altogether. Then add the line var cTheEmail = and leave your cursor there. Now hold the Ctrl key down and drag the mouse to the field you want to refernce. The cursor will change to a V symbol. Once it does that click the field and the reference to that field will be placed in the script editor at the last location of the cursor.Try it again.
If that does not work post your form and I will have alook.
Paul
Views
Replies
Total Likes
Still not working.
How can I post the form? Note that because the form is not offically released, it is still confidential. Can I email it to you?
BTW...really appreciate the help that you are offering here.
Views
Replies
Total Likes
When you reply there is an attach files dialog in the reply area.
Paul
Views
Replies
Total Likes
Your 1st message was in the public forum but its Ok I got the message removed before the file was available so no one could get it.....send it to livecycle8@gmail.com (only I have access to that)
Paul
Views
Replies
Total Likes
Views
Likes
Replies