Need to populate the values based on the selected option from the one of the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 06:57 AM
Hi All,
I am working on one of the integration, based on the selected option on the form level I need to populate the values on another field.
I have created the REST message and using the api key under HTTP Headers. When I tried in the REST Message it's working fine.
I wrote the on change script on the Topic field.
When I select the "Cloud Provider" as Azure then "Topic" field contains some values based on the selected values from the "Cloud provider".
Cloud provider field type as Look up select Box and referring to u_ccoe_help_topic_map_list table.
If I select the "Topic" as "Extend Expiry of Sandbox subscription" then two more fields will visible "Subscription Name" and "AssetID" I need to populate the values over here when I select this option "Extend Expiry of Sandbox subscription".
Responce : [{"item1":"DCO-AzurePOC-6,"item2":"2001"},{"item1":"DCO-AzurePOC-5","item2":"2083"}]
On the Subscription Name field I need to display item1 and on the AssetId field I need to display item2.
I tried with the client script like below and onChange of the Topic field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 08:17 AM
Hi @vinuth v ,
If the log in client script alert('som new value:' + newValue); is not getting the please check below newValue exactly matches 'Extend Expiry of Sandbox subscription'. Make sure there are no leading/trailing spaces or any other discrepancies in the selected option's value.
If this solution is helpful, please consider marking it as "Solution Proposed."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 08:34 AM
I tried with the below script and Alert message is coming on the form level, but on the "Subscription Name" object is coming.