Expand my Community achievements bar.

SOLVED

Pls. make the below piece of code as a common function in JS?

Avatar

Level 4

Hello,

(I am new JS & LC)

I have a my_subform in page-2, and i have bunch of drop-down fields in my_subform. To maintan cross-dependency / filtring the list box, am using the below piece of JS code (actually this code is not working for some reason, but i will try to figure it out that what went wrong in this code by using/putting MESSAGE statement for after each & every statement so that i can track data flow ),

(Actually i got this from another expert in my thread of ==> http://forums.adobe.com/message/5724054 )

Pls. see the provided URL, Pls chk Bruce's Sep 29, 2013 9:05 PM reply 

As i mentioned i hv bunch of drop-down fields in my_subform, i need to hv this JS on every dropd-wn field,  but to avoid code redenncy i want to make it as a FUNCTION so that easy for maintenece, pls. provide me the function JS for the above said JS

Thank you

1 Accepted Solution

Avatar

Correct answer by
Level 8

Adobe help files are a good reference when you're trying to do something http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000818.html

View solution in original post

3 Replies

Avatar

Level 4

Any help pls. (just convert the above code snipppet into a FUNCTION so that i will use it for multiple places), also suggest me where i need to put this FUNCTION, i mean, event name, object name

Thank you

Avatar

Correct answer by
Level 8

Adobe help files are a good reference when you're trying to do something http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000818.html

Avatar

Level 4

I am newbie to JS, i need to place this function in my_form ASAP, pls. help me somebody by goign JS for this function

Thank you