Data lookup is not working onchange but working on submit

amaradiswamy
Kilo Sage

Hi All,

I am using data lookup definition to set the values of one field based on the other field. in eureka, it worked well. but, after upgraded to geneva the data population is working only when the record was submitted and it is not populating onchange of the field.

I have checked that "Run on form change" was set to true.

Please provide your inputs to get this worked.

thanks and regards,

Swamy

4 REPLIES 4

pranavparmar
Giga Contributor

Couple of things you want to check:



1. If you manually activated the plug-in, cross check if there is no custom business logic inteferring with look up rules.


2. Verify following troubleshooting steps from wiki:


If the custom data lookup definition rules are not behaving as expected, check for the following conditions.


  • Verify that the data lookup definition is set to run on the appropriate events.
  • Verify that the matcher field is not read-only. Since users cannot change read-only fields, user interactions cannot trigger an on form change event for read-only fields.
  • Verify a client script is not changing a field value. Client scripts can trigger Run on form change events even on read-only fields.
  • Verify that the data in the matcher table is correct.
  • If the lookup requires an exact match, verify that there is a matcher table row for each possible combination (including blank values). The lookup fails if cannot find a matching value.
  • Verify that you have not created a recursive rule, such as:
    If Field A = 1, then Field B =2. If Field B = 2, then Field A = 2

Very helpful, Thank you!

Deepak Kumar1
ServiceNow Employee
ServiceNow Employee

try running this code in global scope in the background script - 

gs.invalidateCache();
 

Awesome!