Avatar

Level 10

Hi,

It is strange that the initialize event is working for the first button.

If I was doing this, I would pass the SOM through to the function:

var oButton = this.somExpression;

if(init.value == 0){

fOnglet.fpanelChange(oButton, this.index, this.all.length);

init.value = "1";

}

Then I would resolve it in the function:

function fpanelChange(o_btn, n_numPanel, n_totalPanel)

{

var o_btn = xfa.resolveNode(o_btn);

...

Again this is working in the initialize event but not the click.

Here is the form: https://acrobat.com/#d=drzwPU-rDXl3wSAzRLK3Sg (not much different / not working).

Here is a sample when I change visual appearance in a function (where all the objects are on the design pages): https://acrobat.com/#d=XGj9UEk4lSbDSoArnQU8dQ

I will try and have a look again later,

Niall