cancel
Showing results for 
Search instead for 
Did you mean: 

How to access fields from structure in adobe form through javascript code

Shery_s123
Discoverer
0 Kudos
92

Hello

I am trying to fetch the value of particular field and set the value of another field as blank according to validation. But it's not working. 

If (  $record.IS_MAIN.HEADER.FKART.rawValue == "O" )

{  this.rawValue = "" ; }

Please suggest the correct way to do this. Any help is appreciated. 

Ryan-Crosby
Active Contributor
0 Kudos
Where is "FKART" in relation to "this" within the subform hierarchy of your layout?
Shery_s123
Discoverer
0 Kudos
Fkart is from the structure which I am passing from the driver program. I have not binded it anywhere in the layout
View Entire Topic
Ryan-Crosby
Active Contributor
0 Kudos

I'm not aware of the ability to read values from the context unless they are bound to the layout.  An easy way to allow for reading the value is to drop the field into the layout and set it to hidden.  The example from the screenshot I have supplied would be referred by data.DesignView.FKART.rawValue.

Screenshot 2024-06-26 at 16.32.36.png

 

Regards,

Ryan Crosby