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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

klowenst
klowenst
Offline

Badges

Badges
8

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
0

Posts & Comments

Posts & Comments
18

Discussions

Discussions
0

Questions

Questions
5

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by klowenst
Customize the badges you want to showcase on your profile
Re: Populate field based on selection from another field? - Adobe LiveCycle 01-06-2009
Thanks Paul. I figured a script was needed but didn't know the syntax. The Data connection I have is using a SQL querey that is working so I'm part way there.The link you sent looks promising, I'll check it out and see if I can make sense of it with my situation.Thanks again!

Views

473

Likes

0

Replies

0
Populate field based on selection from another field? - Adobe LiveCycle 29-05-2009
I'm using a Data Connection with a SQL query that returns two fields (StNameFull and ADDRKEY). I have a drop-down list called "Address" with the list items dynamically bound to StNameFull, so the user can select the address.What I'm trying to do is populate the second field "Key" with the corresponding record, based on the selection made from the drop-down list.Is it possible to script this so that when the Address is selected the Key will automatically fill in with the key that matches the addr...

Views

1.1K

Likes

0

Replies

2
Re: Javascript dropping trailing zero's on replace - Adobe LiveCycle 21-05-2009
BR001,You are correct, it works using formattedValue!Not sure what I did wrong the first time I tried this, but I gave it another shot and it's working like so:if (TimeReceived.formattedValue.search(":") > 0)val1= TimeReceived.formattedValue.replace(":", "");elseval1 = TimeReceived.formattedValue;Thanks a million for the suggestion! - Kevin

Views

832

Likes

0

Replies

0
Re: Javascript dropping trailing zero's on replace - Adobe LiveCycle 21-05-2009
Steve,Sorry, I completely misunderstood what you meant there. Doh!Thanks for the clarification. - Kevin

Views

811

Likes

0

Replies

0
Re: Javascript dropping trailing zero's on replace - Adobe LiveCycle 21-05-2009
Hi pguerett,It does display correctly, the problem is I'm am then checking "working hours" based on "day of the week". I need the code to produce an error and force them to re-enter if the time is not between 6:00 to 15:30 on Monday thru Thursday and 6:00 to 14:30 on Fridays.If a colon is entered it fails at that step, so I'm trying to strip out the colon and at that point the trailing zeros are removed so 12:00 becomes 12This only happens if it ends in zeros, so 12:15 becomes 1215 and works fin...

Views

814

Likes

0

Replies

0
Re: Javascript dropping trailing zero's on replace - Adobe LiveCycle 21-05-2009
Hi BR001,Thanks for the suggestions. I tried changing the line you suggested and got the exact same result. It seems to add the zeros into the field and then strip them out again.I also tried using formattedValue instead of rawValue and still the zeros are stripped away.Any other ideas would really be appreciated. - Kevin

Views

815

Likes

0

Replies

0
Re: Javascript dropping trailing zero's on replace - Adobe LiveCycle 20-05-2009
I wish I could download the attachment to type in these fileds and see how it actually works. It looks good but I'm not totally getting it.My script was also checking day of the week (with your help) and I'm really close to it working perfectly except for the dropping zeros.You can see in the screenshot attached that when I enter 12:00 the value is somehow changed to 12 (xfa.host.messageBox(val1);)Is this a bug or is there anything I can do to get this working with my existing script?I reeally a...

Views

807

Likes

0

Replies

0
Re: Javascript dropping trailing zero's on replace - Adobe LiveCycle 20-05-2009
I am using the validation pattern you mentioned already, the issue is I need to check for "working hours" and it broke if the user entered a colon.So I added a step to replace the colon, and that is where I run into the issue of the trailing zero's dropping off.If the user types in 15:00 it fills the field fine but fails to check for "working hours". Here is the entire script, maybe it will make more sense:if (this.TimeReceived.isNull == true){ xfa.host.messageBox("Please enter 'Time Received'")...

Views

818

Likes

0

Replies

0
Re: Javascript dropping trailing zero's on replace - Adobe LiveCycle 20-05-2009
Sorry, this is a Date/Time Field.The user enters the time and it checks to see if it is in "working hours". It works unless the time entered ends in zero's because they get dropped then the : is removed. Ofcourse it also works if the time is entered with no : I'm a noobie so I wouldn't be surprised if there is a better way to do this.

Views

812

Likes

0

Replies

0
Javascript dropping trailing zero's on replace - Adobe LiveCycle 20-05-2009
Part of script I'm working on searches for a colon and removes it. It works great unless zero's are entered after the colon. I that case the zero's are dropped.if(TimeReceived.rawValue.search(":"))val1 = TimeReceived.rawValue.replace(":", "");else val1 = TimeReceived.rawValue; For example:15:15 = 151515:00 = 15The missing zero's cause an issue later in the script. Is there a better way to do this or to add the zero's back in?Thanks for any input on this issue.

Views

5.2K

Likes

0

Replies

14