Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help with Livecycle and Javascript

    Hi everyone,

    New here, and new to Javascript.

    What I've been trying to get down seems simple but isn't really simple for me.

    I'm trying to create a receipt form, so my table consists of Transaction, Product, Amount, Rate, Subtotal. The objects I'm using are a drop down list, drop down list, numeric field, decimal field, numeric field.

    What I am trying to accomplish is in my Transaction drop down menu the options are buy or sell. I want if someone selects buy that the amount field, whatever is filled in is a negative number so as to calculate a proper subtotal and total.

    I really need some help with this cause I've been trying to figure this out for days.

    Thanks

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,189
    Thanks
    75
    Thanked 4,341 Times in 4,307 Posts
    What you want is really pretty easy. But it would be hard to just show you what to do with no reference to what your form looks like.

    I think you need to post some code so we can show you what to change and/or add.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    again I'm pretty new to this stuff so how would I post it. Is it easy to post my livecycle form. I don't know really where to begin with the javascript coding. I've been trying to figure it out with javascript tutorials, but they all fall into html and thats not what my end form will be running on. It will simply be a pdf

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,189
    Thanks
    75
    Thanked 4,341 Times in 4,307 Posts
    I don't know enough about LiveCycle to help here, either. Hopefully somebody else will step in.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    620
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Simply post what you have so far in the same way as you are posting your question. It would be really nice if you could put code tags around it, but as you're a new poster, maybe we'll let that slide just this once.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •