cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

Shery_s123
Discoverer
0 Likes
1,230

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. 

Accepted Solutions (0)

Answers (1)

Answers (1)

Ryan-Crosby
Active Contributor
0 Likes

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