Give me some inputs on on change client script

PittalaL
Tera Contributor

"HR Planning & Operation" table i have two reference fields called 'Category '&'subcategory'. In Category and Subcategory records have a checkbox called "Allow approver user". When i create a record in HR planning & Operations table i will select category and subcategory which the checkbox is true. Then only the field "Approver" in HR planning& Operation table should be visible. 

2 REPLIES 2

PittalaL
Tera Contributor

i have already tried UI polices but it no luck .

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.