I want to hide some elements in the Adobe form with respect to the value of a Form context field.
If this field is mapped to an element in the Form layout then we can access it using data.<field>.rawValue, but this field is not mapped to any element on the layout.
Please help me if anyone knows it.
The coding you are showing is FormCalc used by LiveCycle Designer.
This is the forum for Acrobat Acrobat forms, there is a separate series of forums for LiveCycle Designer. If you are using LiveCycle Designer please post in the appropriate LiveCycle forum.