Have to make field visible based on Variable value choice and RITM Value choice, looking for suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2024 12:36 AM - edited 08-23-2024 03:26 AM
Looking for help i.e., if item = lead manager App and Request type =API requests then make visible of
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2024 03:52 AM
Using a Client Script (not Catalog) on the sc_req_item table, g_form has access to the fields on the RITM record and variables from the Catalog Item, so you can use it just the same with the field/variable name and no other distinction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2024 06:15 AM - edited 08-21-2024 06:26 AM
Hi @Brad Bowman ,
Tried already with onload client script on sc_req_item table with below script but it is not working.
Could you please help me out it.
-----------------------------------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2024 06:36 AM
It would look more like this to follow the syntax of g_form
function onLoad() {
if (g_form.getValue('cat_item') == '<<sys_id of catalog item>>' && g_form.getValue('state') == '19' && g_form.getValue('request_type') == '495365a21be021108f7111f8bc4bcbbd') {
g_form.setVisible('u_could_this_late_request_be_fulfilled', true);
}
}
If the field/variable is Visible by default, then you would need an else to setVisible false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2024 06:57 AM - edited 08-21-2024 06:58 AM
Hi @Brad Bowman ,
request_type is variable which is part of catalog form. So when we called it wont work i guess.
Reason for saying is when trying the script which you shared it is not working. Also, i given Variable choice value is name instead of sys_id. Even this scenario also variable is
.