How to write client script for below

samba siva redd
Tera Contributor

1. In "HR Planning & Operation" table i have two reference fields called 'Category' & 'Subcategory'.

2. While creating Category and Subcategory records i have a checkbox called "Allow approver user". I will create by making true that check box.

3. When i create a records in "HR Planning & Operations" table i will select "Category and Subcategory" which is the checkbox is true.

4. After selecting "Category & Subcategory" Then the new field "Approver" in should be visible HR planning& Operation table .

11 REPLIES 11

I want to show or Hide Approver field which is on HR planning & Operation Table when i select Category and Subcategory Records which allow approver user check box is true in Category & subcategory.

sambasivaredd_0-1751289704648.png

 

Syed14
Mega Guru

Hi,

You have two reference fields and if both fields have 'true' value on their approval field then a new field approver should be visible on HR table right?

So, for this you have to create two Onchange client scripts for both fields.

Call GlideAjax to get the Value of their approval field.

If both values are true, then show the approver field on HR table using g_form.setVisible('my_field', true) function.