- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 05:12 PM
Hi team
I have this situation here. I would like to create a rule or script that if "Model" contains "5875" the section "Mobile" as selected get not visible
Thank's in advanced
This helps other users find accurate and useful information more easily
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 05:19 PM
Hi
Write a ServiceNow on change client script on the model field
-Make onchange to work onload also
var modelValue = g_form.getValue('model');
if (modelValue.includes('5875')) {
gForm.setSectionDisplay('mobile', false);
} else {
gForm.setSectionDisplay('mobile', true);
}
}
Ch Hemant Kumar
Lead -Ciena
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 05:49 PM
It's works dude!!. Thank you
This helps other users find accurate and useful information more easily
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 05:19 PM
Hi
Write a ServiceNow on change client script on the model field
-Make onchange to work onload also
var modelValue = g_form.getValue('model');
if (modelValue.includes('5875')) {
gForm.setSectionDisplay('mobile', false);
} else {
gForm.setSectionDisplay('mobile', true);
}
}
Ch Hemant Kumar
Lead -Ciena
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 05:49 PM
It's works dude!!. Thank you
This helps other users find accurate and useful information more easily