- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hello everyone,
Recently, I was preparing for CAD exam and during one of the mock tests, I got doubt in one question:
Which option are strategies for debugging client-side scripts?
a. gs.addErrorMessage()
b. gs.log()
c. jslog()
d. g_form.addInfoMessage()
which two options are correct?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 4 weeks ago
Hi @MayankGupta77 ,
c. jslog() and d. g_form.addInfoMessage() are the correct options.
jslog()
Sends log messages to the browser console
g_form.addInfoMessage()
Displays an informational message on the form Client-side (GlideForm API)
If my response helped, please mark it as the accepted solution so others can benefit as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 4 weeks ago
Hi @MayankGupta77 ,
Option C,D are correct
1. If you want to execute jslog() here is the example (Press----ctrl+shift+J)-
2. if you want to test gs.addInfoMessage(); here is the example-
If you found my response helpful, please mark it as helpful and accept it as the solution.
Thank you
Nawal Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 4 weeks ago
Hi @MayankGupta77 ,
c. jslog() and d. g_form.addInfoMessage() are the correct options.
jslog()
Sends log messages to the browser console
g_form.addInfoMessage()
Displays an informational message on the form Client-side (GlideForm API)
If my response helped, please mark it as the accepted solution so others can benefit as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 4 weeks ago
Hi @MayankGupta77 ,
Option C,D are correct
1. If you want to execute jslog() here is the example (Press----ctrl+shift+J)-
2. if you want to test gs.addInfoMessage(); here is the example-
If you found my response helpful, please mark it as helpful and accept it as the solution.
Thank you
Nawal Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
c. jslog()
d. g_form.addInfoMessage()
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
