Client Scripts for hr_case - How to:

joedumond
Tera Contributor

Am I missing something?

I don't see how client scripts get applied to record producers that create a case record.

The client scripts work for the RP (hiding variables onLoad, making them not mandatory).

But after they are submitted and hit the case table the client scripts dont take affect and all the variables appear on the case form.

I understand by definition that they are 'Catalog' client scripts but there has to be for this to work.

Its a logical extension of the task table.

Does anyone have experience in making this work?

6 REPLIES 6

Hi Joseph,


Did you ever work your way through this one?     I'm in the same position myself and have found that I've had to extend the hr_case table and use that 'new' table to work with my custom variables.   That said, I've managed to get the variables themselves to appear but they do so without any of the similar formatting that was applied to the form.   So, UI customization on the RP form.. then UI customization for the HR Case.   Doubles the work, but that's all I'm seeing for answers at this point.



On top of that, none of these variables (from the extended table or from the variable set) seem to be available on the HR Task.  



If you've worked something out, could you share?   I'd be quite keen on being able to figure out how this is meant to be done before the project launches in the next week or so.



Thanks!


Duaine.


I brought this to ServiceNow's attention but was told, that's just how it is.


However, I have addressed the issue. At least for my needs with something I can live with.


The RP has its own Catalog Client Scripts and UI Policies that manipulate the form to your specifications.


Once the Case is 'submitted', those variables end up on the Case form in the Variable Editor. (I have not addressed passing those variables to Case Task. It's not our business case to do so at this point.)


I then had to create Client Scripts on the hr_case table for each and every record producer that needed to be 'cleaned up.'