since ‎10-12-2009
‎10-12-2019
Gene--O
Level 1
Betreff: Currency Decimal Places
Avatar

Kosta_Prokopiu

Kosta_Prokopiu
- Adobe LiveCycle
🙂 I think there is an easier solution 12345/1000 on next lower cent: Math.floor(100*(12345/1000))/100 =>> 12.3412345/1000 on next higher cent: Math.ceil(100*(12345/1000))/100 =>> 12.35

Views

101

Likes

0

Replies

0
Re: Display/Hide Decimal
Avatar

Jono_Moore

Jono_Moore
- Adobe LiveCycle
Are you using any Display Patterns?Try something like: num{zzzz9.99}

Views

281

Likes

0

Replies

0
Re: calculating times in 15 minute increments
Avatar

Gene--O

Gene--O
- Adobe LiveCycle
Thanks for responding. It’s a bit too much for me also!!

Views

6.4K

Likes

0

Replies

0
Re: Filling a form based on a Table
Avatar

Gene--O

Gene--O
- Adobe LiveCycle
thanks for the reply, I'll give it a shot!!!

Views

320

Likes

0

Replies

0
Re: Hidden Subforms
Avatar

Gene--O

Gene--O
- Adobe LiveCycle
Thank you so much Steve!!!!

Views

305

Likes

0

Replies

0
Re: Disappearing Radio Button Selection
Avatar

Gene--O

Gene--O
- Adobe LiveCycle
Bruce,I don't know how to publish it for you to look at. What would you like me to do? I appreciate the help!Gene-O

Views

293

Likes

0

Replies

0
Re: If/then statement with hidden fields
Avatar

JainSa

JainSa
- Adobe LiveCycle
Hi ,May i need one help.!i was created one Text field and then binding the data .in Binding Field the User Does not Enter the Value .?How to show N/A in created text field.

Views

2.6K

Likes

0

Replies

0
Re: Calculating times past midnight
Avatar

sonyapatton123

sonyapatton123
- Adobe LiveCycle
I have seen where you have helped many people can you please help me. I have no idea what I am doing.I have three fields appt time, actual arrival time and a field for the difference in time. How do I script the time to get difference. (Sometimes the actual arrival time can be the next day.)?

Views

594

Likes

0

Replies

0
Re: Time calculations past midnight
Avatar

CJ54235

CJ54235
- Adobe LiveCycle
Hi Radzmar!I am a newbie to writting FormCalc. I have tried to tweak your sample to fit my needs with no luck.I have 6 fields for each weekday - in & out times for morning, afternoon, and overtime. I haven't even attempted to look at how overtime is calculated. Right now I am just trying to get the hours calculated for morning and afternoon minus the lunch break. I have attached a link to my feeble attempt in the hopes you could look at it.http://www.whitetailsunlimited.com/i/p/TimeSheet20121203...

Views

344

Likes

0

Replies

0
Re: Text Field Control Radio Button
Avatar

paulk07

paulk07
- Adobe LiveCycle
Send me the form if you'd like & I'll take a lookpbeef2000@yahoo.com

Views

99

Likes

0

Replies

0
Re: Multiple conditions of an "If" statement
Avatar

Gene--O

Gene--O
- Adobe LiveCycle
Bibhu,Thanks for your response!I wrote this in FormCalc as a Calculate Event in the "Number" field:If (form1.TimeSheet1.Table1.Row1.Day.rawValue=="Friday","7")It works just fine: when I type "Friday" into the "Day" TextBox, it returns a "7" into the Number fieldBUT:I also wrote these, but no matter what I type ("Friday" or "Wednesday", etc) in the "Day" TextBox, it returns a value of "1" into the Number field in all instances:If (form1.TimeSheet1.Table1.Row1.Day.rawValue=="Friday","7");If (form1...

Views

101

Likes

0

Replies

0
Re: Number of days in a month
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Maybe you're display pattern is different to the pattern in the script.Here's a working example form:https://acrobat.com/#d=rqvjWvn5WIBrWD*GLDRgfA

Views

620

Likes

0

Replies

0
Re: Adding hours & minutes
Avatar

JillOfAllTrades

JillOfAllTrades
- Adobe LiveCycle
Hello Gene-ODon't take this the wrong way.... buuuut your problem is in your math. 1.15 is not equal to 1 hour and 15 minutes. 1.25 is equal to 1 hour 15 minutes. 165/60 does equal 2.75 hours. You are trying to get this type of time: 1:15 (1 hour 15 minutes - notice the colon)You actually have to do a conversion and then re-convert it back to I have a form with columns of time in this format HH:MM (hours are seperate column & minutes are a seperate column.) var dMin = Page1TotalMinutes (Page1Tot...

Views

212

Likes

0

Replies

0
Re: How do I learn?
Avatar

Jono_Moore

Jono_Moore
- Adobe LiveCycle
Creating Dynamic Forms with Adobe LiveCycle Designer by J.P. Terry is a great place to start.http://www.amazon.com/Creating-Dynamic-Forms-LiveCycle-Designer/dp/0321509870

Views

118

Likes

0

Replies

0
Re: Calculating Time
Avatar

Niall_O_Donovan

Niall_O_Donovan
- Adobe LiveCycle
Hi Gene-O,Here is a sample: https://acrobat.com/#d=kCPIgVkd09qrx6h-WRXxbQIt is all FormCalc and the script is in three locations. The daily hours field has a basic check to see that the fields are not null and that the In time is before the Out time. The total normal hours does a basis addition of the daily totals and then checks if this is greater than 40hrs. If it is, then it limits the normal hours to 40hrs and spills the rest into overtime hours. The last script is in the total hours field t...

Views

139

Likes

0

Replies

0
Re: Adding Days of the Week
Avatar

Gene--O

Gene--O
- Adobe LiveCycle
Thank's very much!!!You guys are awesome!Gene-O

Views

87

Likes

0

Replies

0
Re: Master Pages and Subforms
Avatar

Srini_Dhulipall

Srini_Dhulipall
- Adobe LiveCycle
Please find the updated document to fix the issue when you click on Yes/ No..You had copied the code from the XML Source of the previous file to your Click event, which you should not. Because XML Source will have other XML tag elements which does not need to be in the Script editor.I removed the XML tags from your Click event and the issue is resolved.https://acrobat.com/#d=iDx3dOazEEtsl9EHyUjJLAFor the Page3 issue, I had resolved it in the previous file itself which you can go thru in the belo...

Views

118

Likes

0

Replies

0
Re: Field Calculations - Duplication of Text
Avatar

Gene--O

Gene--O
- Adobe LiveCycle
Thanks so much!!!! Have a GREAT day!!!

Views

44

Likes

0

Replies

0
Re: Count the number of times a field is filled
Avatar

Gene--O

Gene--O
- Adobe LiveCycle
Paul,You are "smarter than your average bear". Thanks so much for the help!!!!!!!Gene-O

Views

49

Likes

0

Replies

0
Re: If Then statement question, multiple conditions
Avatar

Gene--O

Gene--O
- Adobe LiveCycle
Paul,I got it figured out. Thanks again for your help!!!!Merry ChristmasGene-O

Views

81

Likes

0

Replies

0
Likes from