Skip navigation
Currently Being Moderated

PayPal Button in Livescycle Fill-in form

Feb 24, 2006 4:37 PM

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?

I had no problem designing the form, but I am not good at XML and JavaScript.

Thanks
 
Replies
  • Currently Being Moderated
    Feb 24, 2006 5:27 PM   in reply to (Jodie_Fleck)
    Hi
    Please repost your question in the LiveCycle Designer forum. This is the LiveCycle Workflow Designer forum. (Confusing, I know.)

    Howard Treisman
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 25, 2006 11:54 PM   in reply to (Jodie_Fleck)
    Hi Jodie

    Try putting the following Javascript code under a button on your form. You'll need to tweak things a little to make it work with your form.

    // 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&currency_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"
    app.launchURL(url, true);

    Good luck!

    Howard
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 27, 2006 2:40 AM   in reply to (Jodie_Fleck)
    Hi Jodie

    I don't see your email. You can get me on htreisman "at" avoka.com

    Howard
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 2, 2009 1:13 AM   in reply to (Jodie_Fleck)
    Hello Everyone,

    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!

    Many thanks in advance,

    NLF
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)