Need to populate the value based on the selected option from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 06:57 AM
Hi All,
I need to populate the value based on the selected option from one of the field.
I have written the onChange code
Currently I can populate the values,
But
I need to populate the "AssetId" value based on the selected option from Subscription Name" field.
Please any one suggest me, how to populate the value,
Thanks in advance,
Vinuth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 07:07 AM
Hi @vinuth v
You can try like this..
1. First onChange client script on Topic & populate only Subscription Name.
2.Second onChange client script on Subscription Name, to populate asset id from Subscription Name.
Can use same logic used in above question.
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 07:23 AM
If I used the same logic then all the values are populated on the AssetId.
My query based on the selected option from the "Subscription Name" name field I need to display the respective value.
For example: