Assigned Vendor field and Vendor reference field disappearance

Drithika20
Tera Contributor

Hi All,

 

I am facing an issue with Assigned Vendor field in FSM Work order and work order task forms, they appear at first and tend to disappear after few seconds. Does anybody know what to do to solve this issue. Please let me know if there are any solutions. 

 

NOTE: If we make the assigned vendor field to be mandatory it is visible, but we don't want it to be mandatory.

 

We tried some possible solutions like checking for Business Rules, Ui Policies, UI Actions, ACLs, Dictionaries, debugging and checking form designer for more overview. We have also tried to give more roles like security_admin and sn_esm_admin as well to check if it is role based hidden fields.

 

Thank you,

Drithika

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Drithika20 

some UI policy or some script is clearing.

Did you check any UI policy or client script which is running on parent table which is clearing that?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Yes I have checked all client scripts and UI Policy and haven't found any relevant scripts or policies

Yes I have checked all rules, policies and scripts and haven't found any relevant things that clears it

SalmatO
ServiceNow Employee
ServiceNow Employee

It sounds like the Assigned Vendor field in FSM Work Order and Work Order Task forms is being dynamically hidden due to a UI Policy, Client Script, or some other dynamic behavior. Since you've already checked business rules, UI policies, ACLs, and roles, here are a few more areas to investigate:

1. Check for Client Scripts (Especially OnLoad Scripts)

  • There might be a client script running on the form that hides the Assigned Vendor field after the form loads.
  • Navigate to System Definition > Client Scripts and filter for scripts related to Work Order (wm_order) or Work Order Task (wm_task).
  • Look for any scripts using g_form.setDisplay('assigned_vendor', false); or similar.
  • Try disabling suspicious scripts and see if the issue persists.

2. Check UI Policies Again (Conditionally Hidden Fields)

  • A UI Policy could be dynamically hiding the field under certain conditions.
  • Go to System UI > UI Policies and check if any UI Policies for Work Order or Work Order Task are set to hide assigned_vendor.
  • If you find one, try disabling it or modifying its conditions.

3. Check Script Includes (Especially If It’s Based on Conditions)

  • Sometimes, field visibility can be controlled via Script Includes.
  • Go to System Definition > Script Includes and look for scripts that reference assigned_vendor.
  • Check if any logic is dynamically controlling its visibility.

4. Inspect the DOM in Browser Developer Tools

  • Open the form where the issue occurs.
  • Right-click the Assigned Vendor field and select Inspect (in Chrome).
  • Observe if any JavaScript code is modifying its visibility (display: none or visibility: hidden).
  • If it's being hidden dynamically, there might be a client script or UI policy doing it.

5. Check if it's Related to Field Dependencies

  • Sometimes, dependent fields are auto-hidden based on other fields’ values.
  • Check if assigned_vendor is dependent on another field (e.g., Assignment Group, Vendor, or State).

6. Test in an Incognito Window or a Different Browser

  • If caching issues exist, try opening the form in Incognito Mode or clearing your cache.

7. Check the View Configuration

  • The form might have different views based on roles or conditions.
  • Go to Form Designer and check if assigned_vendor is placed correctly in all views.