Frequently Asked Question
How to show or hide fields using script
Last Updated 8 years ago
We can hide and unhide fields by using the script, Field_Name.setHidden(true/false) in different levels as on Page Entered, on Exit, on Focus etc.
Example-
For sub inventory and locator, we will hide locator field in "On Page Entered" event of the page.
script:
locator_field.setHidden(true);// locator_field is internal Locator Field Name, we can change accordingly.
If sub inventory is locator controlled then can unhide locator field by writing script in "on exit" event of sub inv. Following is a way to do that-
script:
locator_field.setHidden(false); // locator_field is internal Locator Field Name, we can change accordingly.
Example-
For sub inventory and locator, we will hide locator field in "On Page Entered" event of the page.
script:
locator_field.setHidden(true);// locator_field is internal Locator Field Name, we can change accordingly.
If sub inventory is locator controlled then can unhide locator field by writing script in "on exit" event of sub inv. Following is a way to do that-
script:
locator_field.setHidden(false); // locator_field is internal Locator Field Name, we can change accordingly.