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

RyCity589
RyCity589
Offline

Badges

Badges
8

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
0

Posts & Comments

Posts & Comments
18

Discussions

Discussions
0

Questions

Questions
8

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by RyCity589
Customize the badges you want to showcase on your profile
I need to apply the same long "if" statement to multiple objects in my form... - Adobe LiveCycle 03-08-2011
How would I add this script as a "Variable," and what text would I have to input into the events for all my objects in order to get the script to run? Right now, I'm just manually copy/pasting the script to the appropriate event for each object in my form.This is the script I'm currently copying/pasting into various events for 5 different objects on my form.//Put this code on the following objects: Promo/Adju buttons, New Job Grade, Current Job Grade, Req. Change Percentagevar nNumber = partiii....

Views

328

Likes

0

Replies

1
Re: Is there anything wrong with this JavaScript code? (simple math formula and if/or statement) - Adobe LiveCycle 15-07-2011
I think I've got it now... change and exit events work fine for the objects I'm referencing in the script.I've also got the all my if/or/else scripts working properly now. I just had to apply the same script to all the affected objects on either the change or exit events.. I'm referencing text fields, numeric fields, a decimal field, and a radio button list. (Just in case anyone else sees this and is wondering).

Views

117

Likes

0

Replies

0
Re: Is there anything wrong with this JavaScript code? (simple math formula and if/or statement) - Adobe LiveCycle 15-07-2011
Thanks Niall.By the way, in order for Ctrl + J to open the javascript debugger, users must have javascript debugging enabled in Acrobat Pro first. I had to follow these instructions to get the debugger to run: http://livedocs.adobe.com/livecycle/8.2/acrobat_designer/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Adobe_LiveCycle_Designer_Help&file=001172.htmlAnother question I just thought of... Should the code I referenced in my original post be placed in the validate, exit or change event?

Views

115

Likes

0

Replies

0
Re: Is there anything wrong with this JavaScript code? (simple math formula and if/or statement) - Adobe LiveCycle 15-07-2011
Yes and Yes... It's chock full of many "if, and, or, else if"statements and it's all working fine except for this code.I'm thinking that another if statment associated with one of the numeric fields that javascript code is working with, is preventing the code i want from working properly.I'm going to examine it more later, I just wanted to know if the code should work by the looks of it, thanks.

Views

115

Likes

0

Replies

0
Is there anything wrong with this JavaScript code? (simple math formula and if/or statement) - Adobe LiveCycle 15-07-2011
var nNumber = NumericField1.rawValue - NumericField2.rawValue;if (nNumber > 2 || NumericField3.rawValue > 5) { TextField1.presence = "visible"; TextField2.presence = "hidden";}I can't get seem to get this code to work. Should this code work in terms of the formula, symbols, etc?

Views

746

Likes

0

Replies

5
Re: Using javascript code to validate contents in text field only if the text field is visible . . . - Adobe LiveCycle 12-07-2011
Thanks so much Barlae! I can't believe I didn't notice I was missing the rawValue... I've been working on this form way too much in the past couple of days!

Views

469

Likes

0

Replies

0
Re: Using javascript code to validate contents in text field only if the text field is visible . . . - Adobe LiveCycle 12-07-2011
Still not working..I've got rid of all the other variables to narrow down this piece of code:if(partiv.nonflow.busjus.presence == "visible" && partiv.nonflow.busjus.TextField13 == null){ app.alert('Please complete all fields marked with a red asterisk and try clicking the button again.'); }else { myScriptObject.LockAllFields(form1);}The above code (attached to a button's click event) locks all the input fields as it should, however if the TextField13 box is visible and empty, it still doesn't ch...

Views

248

Likes

0

Replies

0
Using javascript code to validate contents in text field only if the text field is visible . . . - Adobe LiveCycle 11-07-2011
I have a "Lock All Fields" button set up and it's set to run only if certain fields are completed. The code works fine... except TextField13 does not validate properly. TextField13 is wrapped within a subform entitled busjus. The busjus subform is hidden from the form layout by default (it only becomes visible if a user selects certain text from a dropdown list). I want the code to check if TextField13 is null only if the busjus subform is visible.The problematic part of the code that is not wor...

Views

1.3K

Likes

0

Replies

4
Re: Trying to get "if/or" statement to work based on some >= numeric fields... - Adobe LiveCycle 11-07-2011
This did not work Rajesh, but I now understand how to use assignment operators, so thank you! I'm implementing a workaround on my form for now, but I might revisit this issue in the future.

Views

481

Likes

0

Replies

0
Re: Trying to get "if/or" statement to work based on some >= numeric fields... - Adobe LiveCycle 11-07-2011
Thanks Niall,Looks like I've got a new problem now where my if statements are nullifying each other because they are attached to different objects...When someone enters a value less than 5 in a numeric field, or selects "No" from a radio button exclusion group, I need the TextBox1 presence to stay hidden. If someone selects "Yes" or enters a value greater than or equal to 5, I need the TextBox1 presence to become visible.I'm using the statement on the exit event. I made an "if" "or" statement be...

Views

473

Likes

0

Replies

0