Real time scenario-based questions for scripting in ServiceNow

RaghuRamB
Mega Contributor

Hi,

Can anyone help me to share the real time scenario questions with answers for scripting in ServiceNow

4 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron

It is tough to say because interview questions are usually based on real-world scenarios.

Nowadays, the interview approach has changed significantly. What you mentioned in the CV has become very important, and most of the questions will revolve around the experience, skills, and projects that you have listed there.

 

https://www.servicenow.com/community/servicenow-studio-forum/guidance-needed-struggling-with-service...

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

Srikanth_9
Kilo Sage

Hi @RaghuRamB,

 

For more real-time scenarios questions refer YouTube videos and practice those in your PDI.

 

If the provided solution is useful/working, please Accept as Solution and hit the Helpful. 
 
Thanks & Regards,
Srikanth Akula.

View solution in original post

Aditya_hublikar
Mega Sage

Hello @RaghuRamB ,

 

  1. Compare two date fields and show a message or populate a field if they are not equal(onChange)

  2. Populate caller email automatically when caller is selected (onChange)

  3. Populate manager field when caller is selected  (onChange)

  4. Auto populate logged-in user in “Requested For” variable in catalog item (Catalog Client Script (onLoad)

  5. Populate multiple catalog variables based on one variable selection (Catalog Client Script (onChange)

  6. Show or hide fields based on another field value (onChange)

  7. Make a field mandatory when a specific condition is met (onChange)

  8. Remove mandatory condition if value changes  (onChange)

  9. Validate start date and end date before submitting form  (onSubmit)

  10. Prevent form submission if validation fails  (onSubmit)

  11. Auto populate user details (phone, email, department) when user is selected  (onChange)

  12. Populate building name when location is selected  (onChange)

  13. Populate users based on assignment group (onChange)

  14. Clear dependent fields when parent field changes  (onChange)

  15. Show error message when invalid data is entered (onChange)

  16. Restrict form submission if user is not part of a specific group (onSubmit)

  17. Show specific fields when a new form loads  (onLoad)

  18. Set default values when form opens (onLoad)

  19. Display warning message when priority is high (onChange)

  20. Auto populate short description based on category  (onChange)

  21. Disable or make field read-only based on conditions  (onChange)

  22. Clear field values if condition not satisfied (onChange)

  23. Validate numeric values before saving record (onSubmit)

  24. Display informational message when form loads (onLoad)

 

you can refer this threads :

https://www.servicenow.com/community/itsm-forum/scenarios-of-client-script-server-script/td-p/341225...

 

https://www.servicenow.com/community/developer-articles/client-script-in-servicenow-with-some-use-ca...

 

https://www.servicenow.com/community/developer-forum/want-some-use-cases-for-client-script-business-...

 

 

https://www.servicenow.com/community/developer-blog/mastering-client-scripts-in-servicenow-a-practic...

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya

 

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron

It is tough to say because interview questions are usually based on real-world scenarios.

Nowadays, the interview approach has changed significantly. What you mentioned in the CV has become very important, and most of the questions will revolve around the experience, skills, and projects that you have listed there.

 

https://www.servicenow.com/community/servicenow-studio-forum/guidance-needed-struggling-with-service...

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Srikanth_9
Kilo Sage

Hi @RaghuRamB,

 

For more real-time scenarios questions refer YouTube videos and practice those in your PDI.

 

If the provided solution is useful/working, please Accept as Solution and hit the Helpful. 
 
Thanks & Regards,
Srikanth Akula.

Aditya_hublikar
Mega Sage

Hello @RaghuRamB ,

 

  1. Compare two date fields and show a message or populate a field if they are not equal(onChange)

  2. Populate caller email automatically when caller is selected (onChange)

  3. Populate manager field when caller is selected  (onChange)

  4. Auto populate logged-in user in “Requested For” variable in catalog item (Catalog Client Script (onLoad)

  5. Populate multiple catalog variables based on one variable selection (Catalog Client Script (onChange)

  6. Show or hide fields based on another field value (onChange)

  7. Make a field mandatory when a specific condition is met (onChange)

  8. Remove mandatory condition if value changes  (onChange)

  9. Validate start date and end date before submitting form  (onSubmit)

  10. Prevent form submission if validation fails  (onSubmit)

  11. Auto populate user details (phone, email, department) when user is selected  (onChange)

  12. Populate building name when location is selected  (onChange)

  13. Populate users based on assignment group (onChange)

  14. Clear dependent fields when parent field changes  (onChange)

  15. Show error message when invalid data is entered (onChange)

  16. Restrict form submission if user is not part of a specific group (onSubmit)

  17. Show specific fields when a new form loads  (onLoad)

  18. Set default values when form opens (onLoad)

  19. Display warning message when priority is high (onChange)

  20. Auto populate short description based on category  (onChange)

  21. Disable or make field read-only based on conditions  (onChange)

  22. Clear field values if condition not satisfied (onChange)

  23. Validate numeric values before saving record (onSubmit)

  24. Display informational message when form loads (onLoad)

 

you can refer this threads :

https://www.servicenow.com/community/itsm-forum/scenarios-of-client-script-server-script/td-p/341225...

 

https://www.servicenow.com/community/developer-articles/client-script-in-servicenow-with-some-use-ca...

 

https://www.servicenow.com/community/developer-forum/want-some-use-cases-for-client-script-business-...

 

 

https://www.servicenow.com/community/developer-blog/mastering-client-scripts-in-servicenow-a-practic...

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya