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 07:09 AM
One or more of the names or values is not satisfying the if condition. Add an alert on each field and value to see which one doesn't agree
function onLoad() {
alert ('Item = ' + g_form.getValue('cat_item') + ' State = ' + g_form.getValue('state') + ' Request Type = ' + g_form.getValue('request_type'));
if ((g_form.getValue('cat_item') == 'f3fff70ddb2ac8107030ed384b9619dc') && (g_form.getValue('state') == '19') && (g_form.getValue('request_type') == 'pre-show readiness'))
{
g_form.setVisible('u_could_this_late_request_be_fulfilled', false);
}
}
Note that the fields and variable have to be on the record being loaded. They don't have to be visible, but they need to be included in the form layout or variable formatter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 03:23 AM - edited 08-23-2024 03:24 AM
Thanks for helping out. @Brad Bowman to achieve result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 05:08 AM
You are welcome!