since ‎06-08-2007
‎10-12-2019
FedWorker
Level 1
Re: Rounding inconsistency in repeating table
Avatar

FedWorker

FedWorker
- Adobe LiveCycle
I'm confused. If using the field names I have above (not static numbers as in your example), would this be:(OT.rawValue * Hours.rawValue).toFixed(2)??Because that doesn't work under the calculate function of LiveCycle Designer.

Views

98

Likes

0

Replies

0
Rounding inconsistency in repeating table
Avatar

FedWorker

FedWorker
- Adobe LiveCycle
In our LiveCycle Designer form design we have a repeating table with a Total field. The total is rounding some numbers up and not rounding other numbers. For example:58.81 x 42.5 = 2499.43 which is correct.60.49 x 5.5 = 332.69 which is incorrect - it should be 332.70.The JavaScript formula we are using is:this.rawValue = OTRate.rawValue * Hours.rawValueAny ideas on what is going on here???

Views

330

Likes

0

Replies

5
Check box based on dropdown selection
Avatar

FedWorker

FedWorker
- Adobe LiveCycle
I have a dropdown menu with three choices: Level I, Level II and Level III. If the user selects "Level I" from the menu, I need a checkbox named levelI to be checked. If they select "Level II", I need the checkbox named levelII to be checked, and so on.I don't care if the boxes are checkboxes or radiobuttons. I don't know if the code needs to go in the dropdown menu field or in the checkbox/radio button fields. If you can help, please be sure to specify whether this would be entered on a change ...

Views

1.9K

Likes

0

Replies

2
Re: Date Calculation for Timesheet
Avatar

FedWorker

FedWorker
- Adobe LiveCycle
Yay - the answer was emailed to me - thank you!!! Here's what worked:Put this script in the scripting window… Show: exitLanguage: FormCalcRun At: Client form1.#subform[0].Table2.Row1.dtf[0]::exit - (FormCalc, client) dtf[1].rawValue = Num2Date(Date2num(dtf[0].rawValue,"YYYY-MM-DD")+1,"YYYY-MM-DD");dtf[2].rawValue = Num2Date(Date2num(dtf[0].rawValue,"YYYY-MM-DD")+2,"YYYY-MM-DD");dtf[3].rawValue = Num2Date(Date2num(dtf[0].rawValue,"YYYY-MM-DD")+3,"YYYY-MM-DD");dtf[4].rawValue = Num2Date(Date2num(d...

Views

57

Likes

0

Replies

0
Date Calculation for Timesheet
Avatar

FedWorker

FedWorker
- Adobe LiveCycle
I have been researching this for hours and I just can't figure it out so hopefully someone can help me here...I have a timesheet form where I'd like the user to click on the first box which I've set up as a date field so the little calendar pops open. Once they choose the date in that field (which I've named dtf[0]) I'd like the rest of the fields to automatically populate with the dates for the remainder of that week. I'd prefer the format to only show the month and day - no year is necessary.E...

Views

2.0K

Likes

0

Replies

3