# JavaScript exit to extract values from unprotected fields

**URL:** <https://techcommunity.softwareag.com/t/javascript-exit-to-extract-values-from-unprotected-fields/257228>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [May 5, 2022, 10:10am UTC](https://techcommunity.softwareag.com/t/javascript-exit-to-extract-values-from-unprotected-fields/257228 "2022-05-05T10:10:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonard.solomyak](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/leonard.solomyak/32/18779_2.png) [@leonard.solomyak](https://techcommunity.softwareag.com/u/leonard.solomyak)\
**Post date:** [May 5, 2022, 10:10am UTC](https://techcommunity.softwareag.com/t/javascript-exit-to-extract-values-from-unprotected-fields/257228/1 "2022-05-05T10:10:27Z")

</div>

#### What product/components do you use and which version/fix level?

ApplinX 10.3

#### Are you using a free trial or a product with a customer license?

Licensed

#### What are trying to achieve? Please describe in detail.

Get the fields labels’ values for unprotected field

#### Do you get any error messages? Please provide a **full error** message

[userExits.js.txt](https://techcommunity.softwareag.com/uploads/short-url/dPTXbYDeWoZcV60W60Zjrbm9W5P.txt) (8.1 KB)  
screenshot and log file.  
No error, no value produced in the script

JavaScript exit is implemented to extract the values of some fields from some identified screens. According to this _attached script comment_, these screens must be associated with the particular screen group – do not see how this group is special ?

The protected field value is obtained via the following expression:

> gx\_engine.activeWindow.contentDocument.getElementById(“CaseNumber”).innerText

How to obtain the value of the unprotected field ?

#### Have you installed latest fixes for the products

Fix 1137

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [August 3, 2022, 10:11am UTC](https://techcommunity.softwareag.com/t/javascript-exit-to-extract-values-from-unprotected-fields/257228/2 "2022-08-03T10:11:08Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
