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

use of javascript in es

Avatar

Avatar
Level 2
_MEHUL_PARESHBH
Level 2

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_MEHUL_PARESHBH
Level 2

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile
_MEHUL_PARESHBH
Level 2

23-01-2009

can we use javascript or js File for validation in adoba lc.?



if yes then please tell me steps.....to include js...file.

Replies

Avatar

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct Reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct Reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
HowardTreisman
Level 9

21-02-2009

Avatar

Avatar
Validate 1
Level 3
JoshDBoyle-DVzR
Level 3

Likes

2 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
JoshDBoyle-DVzR
Level 3

Likes

2 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
JoshDBoyle-DVzR
Level 3

24-02-2009

Mehul



By "validation" I'm going to make an assumption that you are referring to LiveCycle Designer form validation.



LiveCycle Designer allows the use of either Javascript of FormCalc whereas the script object you can use within Workbench utilizes BeanShell - a small scripting language based on Java.



As far as making use of an external js file for use in validation within Designer, you can reference "trusted" functions. These functions can be stored in files within the app.path directory and can be referenced from within your form. However, this then means that any user who is to use the form you've created will have to have a copy of the trusted code file on their local system or the form will error when it tries to call the code.



Your best bet is to just copy any of the javascript code from your external file into Designer and let it run from within the form.



Josh Boyle

jboyle@cardinalsolutions.com

Cardinal Solutions Group