Why Client script was not working properly on HR case?

Deepika61
Tera Contributor

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

Deepika20_0-1696595161696.png

 

On the case form after creation on the case form it will appear both the fileds 

Deepika20_1-1696595263402.png

but after change one the choice value its seams to working fine

Deepika20_2-1696595353836.png

 

please help me to reslove this

 

Thanks

Deepika

 

 

10 REPLIES 10

@Deepika61 

that page won't support any client script etc

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar is that Ui policy also not work?

Deepika61
Tera Contributor

Hi All,

No ui policy and no client script was working on the case creation page for to show/hide fields or for validations

 

Any solution for this?

 

Thanks

Deepika

 

 

Thanks

You haven't posted your full script, without all of the unnecessary highlighting or redacting if that's what that's supposed to be, or confirmed that the UI type and mandatory & display order in the script is correct as I suggested last week.

@Brad Bowman  

i have made all the changes which you propose but 

Basically the client script which i wrote is perfectly working once case created ,but it won't work on the case creation page

Deepika20_1-1697116632410.png