cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript Question.

SagarSontakke
Active Participant
0 Kudos

Hello All,

I am new to adobe interactive form. I have created one test form where below is the DATA VIEW of the form.

Root YTCS243796_01

->CARRID

->CONNID

--> So on

I am using the WDABAP where I am setting the value of CARRID and CONNID as "AA" and "0017".

I have written the javascript to read the value of CARRID . If i write below javascript code then value is getting read

if ($record.CARRID.value == "AA") { this.presence = "invisible";}

but if I write below code then value of CARRDID is got getting read.

if (xfa.datasets.data.YTCS243796_01.CARRID.value == "AA") { this.presence = "invisible";}

can anybody tell me what am i missing in second javascript code?

Regards,

SVS

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Goto the initialize event of field CARRID and try the javascript below.

if (this.rawValue == "AA"){
   this.presence = "invisible";
}

You can try the following path as well.

xfa.form.mainNode.mainForm.subform.field.rawValue

Thanks & Regards,

Sanoosh

Former Member
0 Kudos

Try the following option.

xfa.record.YTCS243796_01.CARRID.value

Thanks,

Aravind