Why Client script was not working properly on HR case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2023 05:29 AM
Hi All ,
Actually i have created one client script to make fields visible and mandatory based on other field choice selected, Actually whenever we create a case (RP) created from portal then client script working fine, but whenever i am trying to create a case from native view, then client script not working properly
Client script
On the case form after creation on the case form it will appear both the fileds
but after change one the choice value its seams to working fine
please help me to reslove this
Thanks
Deepika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2023 05:34 AM - edited ‎10-06-2023 05:37 AM
Ensure the UI Type is set to All
Also, whenever setting Display/Visible to false, make sure the field/variable is NOT mandatory first in the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2023 05:39 AM
Hi @Deepika61
Can you please share the complete client script code?
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2023 05:43 AM
are you submitting record via record producer and expecting the client script to work on target record?
if yes then ensure your catalog client script runs on Target record as well
Ensure Applies on Target Record is true
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2023 10:39 PM - edited ‎10-08-2023 10:49 PM
From the portal its working fine but when i am trying create a case from native its not working, Basically from portal we have a RP , we can submit a request, its working from, but from native view, when we "create case", basically here based on the HR service selected, we make few fields visible though "case create config". but this client script not working on this page