I have created a form in Livecycle Designer that calculates the total amount due after you have made your selections. I need to have that total amount on a PayPal Button. PayPal has their "Buy it Now" button in HTML. Is it possible to do this? Is anyone willing to help me out on this?
(Nathalie_Findlay), Mar 2, 2009 1:13 AM
It has been posted there for awhile with no response. I was told by Adobe Tech support today to post it here, to get to the people that could help.
I told him I didn't want to get "flamed" for posting in the wrong place.
Is this process so elementary that my ignorance is showing, or is this really that complex of a request that it can't be done? I have posted on at least 6 different forums including PayPal forums to no avail.
// Get the item name and cost from a field on the page
var name = form1.page1.ItemName.rawValue;
var cost = form1.page1.Cost.rawValue;
// Construct the paypal url. Change the email address and currency code as appropriate
var url = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=me@mybusi ness.com¤cy_code=USD"
// Append the item and amount parts of the url
url = url + "&item_name=" + name;
url = url + "&amount=" + cost;
// Launch the web page. true means "open in a new browser window"
I have the same issue; I would really appreciate some help too, please. Howard, I would happily apply your advice, but I'm afraid it would have to be put through a dumbing down before I would know how to use that!