Frequently Asked Question

How to get pointer of a field programmatically using field name
Last Updated 6 years ago

As we know, each field name is a variable name in the Express Java script. But what if the field name has a space in it, this prevents us from using the field name as a variable.

Here is example of getting the field programmatically using the field name.

script:
// get the field using Java API
InputableFieldBean field1 = page.getFieldBeanList().get(page.getFieldIndex("Field 1"));

// set the field prompt
field1.setPrompt("Comments");

Please Wait!

Please wait... it will take a second!