Auto-populate Template Field on Project Form via 'Apply Template' UI Action in SPM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 11:42 PM
In the SPM module, I created a new field called 'Template' on the Project table form. When a user selects a template using the 'Apply Template' UI action, I want the selected template name to automatically populate in the 'Template' field on the form. How can I achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 11:45 PM
this link has solution, please enhance
Programmatically Apply a Template To a Form?
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
05-22-2025 06:44 AM
Hi @Ankur Bawiskar ,
Thanks for your response. I reviewed the suggested link and attempted the approach, but unfortunately, the code is not working as expected in my case.
Could you please take a look and help enhance it based on the current issue? Any further guidance would be appreciated.
Best regards,
Dany Rohinth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 08:06 AM
share your script and what debugging did you perform?
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