- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 06:59 AM
Hi
I need to have choose list option available depending on choice on another field. Exactly when I have BAU option chosen I need to have other option displayed on the list. Below client script works perfectly but then form is saved. I need to have it working before it is saved. so empty form. I choose BAU and Other is available. Do I need to use GlideAjax or can it be done in the other way? I checked onChange client script but also without success.
function onLoad() {
var bau = g_form.getDisplayBox('u_portfolio_parent').value;
if (bau != 'BAU'){
g_form.removeOption('u_delivery_type','other', 'Other');
}
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 07:05 AM
Hi,
You need to change this to an onchange client script that runs onload as well and it runs on change of u_portfolio_parent field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 07:05 AM
Hi,
You need to change this to an onchange client script that runs onload as well and it runs on change of u_portfolio_parent field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 07:05 AM
Hi @PiotrekL
You can make Dependency on 'Delivery Type' field as below:
On Dependent on field you can select Portfolio Parent.Value.
Also you have to set Dependency values on your Choices of Delivery Type field as below:
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 09:14 AM
Can I do this in a
Select Box?