ServiceNow Things to Know 47: Accessing UI page parameter values inside UI Page Client Script
UI Page Client Script:
var myModal = GlideModal.prototype.get('validate_ui_page'); // pass name of the UI page for global scope and for scoped app pass the endpoint name without .do extension
var tableName = myModal.getPreference('sysparm_tableName'); // pass name of the parameter mentioned in setPreference() method
If my content helped you in anyway, please mark this content as BOOKMARK, SUBSCRIBE & HELPFUL
Best Regards,
Prashant Kumar (LearnIT)
YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant
Blog LearnIT: https://medium.com/@LearnITbyPrashant
Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/
ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635
Labels:
https://www.servicenow.com/community/developer-blog/servicenow-things-to-know-47-accessing-ui-page-parameter-values/ba-p/2772032