The CreatorCon Call for Content is officially open! Get started here.

Reference Field buttons not functioning

miffin
Giga Contributor

I have a form in my application which has 4 reference fields, below is a screenshot of two of them. The "lookup using list" and the "more details" button have no function (on all four of the reference fields). This is the only form where this is a problem, all other forms reference fields (even those which reference the same mapping and server tables) work as expected.  

Capture.PNG

I am sure the References are set up correctly because for the same table in the image below (just in list view and not form view) the references work perfectly, taking me to the correct records.

Capture1.PNG

The only cause I can think of is that on form load I populate the Mapping and Server tables with new values?

As a final mention, these buttons were working perfectly last week. All I have changed in this time is the repositories branch. Could an update to my instance have caused this issue?

1 ACCEPTED SOLUTION

miffin
Giga Contributor

So I managed to fix the problem and now it works perfectly. After examining my browser's console on the form I saw that a "Failed to bind link" error was being produced. Took me a while but I realized there was a syntax error (client code) in one of the UI actions. Because of this, the form failed to completely load (the response time bar would not show) and the controls remained inactive.


View solution in original post

4 REPLIES 4

darius_koohmare
ServiceNow Employee
ServiceNow Employee

Hi Matt,


I see you state:


"The only cause I can think of is that on form load I populate the Mapping and Server tables with new values?"


How are you setting the values? Do you set the sys ID to the field, or are you setting the display value to the field?



Instance update should not have caused the issue; major updates are only during family releases - did you recently upgrade?


I create a new row for the table with the (Mapping/Server) ID's value and its details. I then get the sys ID of the row and set this to the reference field. I thought this would be the problem so I completely removed all of the "onLoad" client code from the form but this error still persists. This suggests that it isn't a problem with the code.


Kalaiarasan Pus
Giga Sage

Check the browser console and verify there are no errors.


miffin
Giga Contributor

So I managed to fix the problem and now it works perfectly. After examining my browser's console on the form I saw that a "Failed to bind link" error was being produced. Took me a while but I realized there was a syntax error (client code) in one of the UI actions. Because of this, the form failed to completely load (the response time bar would not show) and the controls remained inactive.