Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-15-2013, 02:20 AM   PM User | #1
mrjn0073
New to the CF scene

 
Join Date: Jan 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mrjn0073 is an unknown quantity at this point
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
mrjn0073 is offline   Reply With Quote
Old 01-15-2013, 02:35 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,573
Thanks: 62
Thanked 4,061 Times in 4,030 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is online now   Reply With Quote
Old 01-15-2013, 02:52 PM   PM User | #3
mrjn0073
New to the CF scene

 
Join Date: Jan 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mrjn0073 is an unknown quantity at this point
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
mrjn0073 is offline   Reply With Quote
Old 01-15-2013, 07:15 PM   PM User | #4
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,573
Thanks: 62
Thanked 4,061 Times in 4,030 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is online now   Reply With Quote
Old 01-16-2013, 07:28 PM   PM User | #5
jalarie
Regular Coder

 
Join Date: Jun 2002
Location: Flint, Michigan, USA
Posts: 595
Thanks: 1
Thanked 20 Times in 20 Posts
jalarie is an unknown quantity at this point
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.
__________________
Visit my site at http://spruce.flint.umich.edu/~jalarie/.
jalarie is offline   Reply With Quote
Reply

Bookmarks

Tags
forms, javascript, livecycle

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:02 AM.


Advertisement
Log in to turn off these ads.