How to write client script for below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2025 05:00 AM
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 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2025 06:22 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2025 11:11 AM
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.