Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Adobe LiveCycle Designer ES8.2 - Patterns

Avatar

28-01-2009

Hi,



I am making a form and need some help with patterns.



The form I am trying to create has a box for a "program fee" where the user input the fee cost the next box is the "x number of attendees" where the user puts how many people at attending etc.. I then have a box "subtotal" which multiply the "program fee" with the "x number of attendees". What I need is to have a box where I can add the pattern to work out the GST of the "subtotal" GST is 10% of total cost.



Does anyone know the pattern to work out the percentage of another box i.e the "subtotal".



Once I can get the "GST" worked out I want to be able to have a "total" box where the "subtotal" and "GST" add together.



Jess

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

29-01-2009

Its not a pattern that you want but a script. On the calculate event of the GST box you can enter a command like this:



this.rawValue = subtotal.rawValue * .10;



Then to add all of this up use a command like this on the calculate event of the Total field:



this.rawValue = subTotal.rawValue + GST.rawValue;



These commands are using javascript syntax.