Client Script and UI policy on incident in Scope Global doesn't work on SOW

Yanping Guo1
Tera Contributor

I have customized fields on Incident form. I have added those fields on Incident view sow_new_record. Client Script and UI policy works on those field in Incident form, but it doesn't work on the view sow_new_record. 

Incident default view is in scope Global , the view sow_new_record is in scope incidrnt management for service operations workspace.  Is this the reason?

 

Second question:

I create a client script onChange:

      g_form.clearValue('u_data');
      g_form.showFieldMsg('u_data', 'Please enter a valid data in the xxx-xxx-xxxx format', 'error');
when user enter the data in a wrong format. Data will be clear. But the message doesn't stay. It just flashes and then disappear.  How to resolve this issue?
Thanks!

 

Thanks!

1 ACCEPTED SOLUTION

below should work to get the view name in the client script dynamically.
"var view = g_form.getViewName()"

View solution in original post

5 REPLIES 5

below should work to get the view name in the client script dynamically.
"var view = g_form.getViewName()"