Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

JS for to see / check my_array contents?

Avatar

Level 4

Hello

I am trying to track / see what the values are populating in my_array in my_form's Java Script, by using differnet syntaxes, but nothing is working, pls. let me know JS code, wherein i can see my_array contets either with ALERT or MESSAGEBOX, i tried below without success!!

Thank you

1 Accepted Solution

Avatar

Correct answer by
Level 10

You'll want to use console.println(), there is no console.log(). Much easier than using alert/messageBox. Just make sure the console window is open in Acrobat (CTRL-J).

If you are filling your array in a loop you should be able to write it out on each pass of the loop with something like console.println(array[i]).

View solution in original post

4 Replies

Avatar

Level 4

Thank you, right, agreed, but i want to see my_array contents.

Already am doing this like below,

xfa.host.messageBox ("You entered wrong ID, spl. fix it")

i want to see my_arrray data residing in my_arrray    

thank you

Avatar

Correct answer by
Level 10

You'll want to use console.println(), there is no console.log(). Much easier than using alert/messageBox. Just make sure the console window is open in Acrobat (CTRL-J).

If you are filling your array in a loop you should be able to write it out on each pass of the loop with something like console.println(array[i]).