Populate values based upon the variable selection.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 03:38 AM
Hi Team,
I have created 4 fields in the form ( Record producer ), based on the questions from " Is this associated with a business application (APMID)" section
the remaining 3 questions are designed to auto populate values based on the " Is this associated with a business application (APMID)"
These 5 fields are linked to the Business application ( cmdb_ci_business_app) .
fields and backend values :
I have written On-Change client script , but the values are not populating as expected. could you please assist me
Thank you .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 03:44 AM
why not use auto populate feature and no scripting is required?
Auto-populate a variable based on a reference type variable (Utah)
In your script don't use getValue() simply dot walk and get the values
something like this
associated_with_a_business_application.business_app_name
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 03:58 AM - edited 03-18-2025 04:07 AM
Hi @Ankur Bawiskar ,
Thanks for your response.
I'm experiencing an issue with the auto-populate option in the form. despite configuring the field mappings correctly , the values are not populating as expected.
These 3 fields are in the Business application (cmdb_ci_business_app )Table
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 04:16 AM
it should work fine.
it's not working even for admins or for non-admins?
If it's not working for non-admin then it means it's an access issue.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 02:13 AM
These all fields auto populate based on the APM its working but in the Platform view auto populate values are not stored , it's showing blank like below image.
It's working on Portal view
But Populate values not stored in the Platform or form level, once form got submitted all populated filed values showing blank like below image.
kindly help me on this.
Thank you .