Auto populate the fields data if selected yes option in catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2023 09:49 PM - edited ‎11-07-2023 09:54 PM
Hi everyone ,
i need to auto populate the fields in the portal if i selected the yes/no option it should be generate the data in the fields
example: Do you need to apply dropdown is yes or no?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2023 09:52 PM
@k niranjan das You need to use an onChange Client script applied on your Yes/No filed. Inside your client script you can call a client callable script include using GlideAjax.
For more information on Client script please refer to https://docs.servicenow.com/en-US/bundle/vancouver-application-development/page/script/client-script...
For more information on script include, please refer to https://docs.servicenow.com/en-US/bundle/vancouver-api-reference/page/app-store/dev_portal/API_refer...
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2023 09:55 PM
Hi Niranjan,
If you want to populate data on catalog item in portal then you should you catalog client script for this. You can create an onChange catalog client script which will run on change of yes/no field and then with help of GlideAjax & script include you can get the values from server and populate in the variable of catalog item.
You can read more GlideAjax here.
If my answer helps then please mark it correct.
Thanks,
Utpal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2023 10:17 PM
unless you share script and screenshots we cannot help.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2023 10:40 PM