Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 82585

Re: PayPal Button in Livescycle Fill-in form

$
0
0

Hi Howard,

I'm trying to use the code you provide here but I'm stuck on this part:

// Append the item and amount parts of the url

url = url + "&item_name=" + name;

url = url + "&amount=" + cost;

 

 

Here's what I've come up with:

----- form1.#subform[0].Header.Button1::initialize: - (JavaScript, both) ---------------------------

 

// Get the item name and cost from a field on the page

var name = form1.page1.TextField1.rawValue;

var cost = form1.page1.numTotalMaterial.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=paypal@huri-translations.pf&cur rency_co//www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal@huri-translations.pf&currency_co de=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"

app.launchURL(url, true);

 

What do I have to change in the code lines?

 

Thanks for your help

Tamatoa


Viewing all articles
Browse latest Browse all 82585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>