Hello,
I am having difficulty implementing a feature request for a form our staff uses. When they enter an id into a field they want to know if it exists in any of three existing databases and if so display some message with data relating to the database it was found in.
The method i have been trying to use is I have 9 fields, 3 for each data source, with a lookup rule pointed to the id field looking for a match, populating the fields with the necessary data. I have tried using 3 custom HTML fields to input a message, but if I put javascript inside the custom HTML field to replace the text with data from the lookup fields, it ends up replacing the text in all collections, and somehow makes a second phantom set of fields show up below the current collection. My attempts to create a javascript function to generate and replace the text have been long and complicated and also haven't worked, as I have tried to trigger the change on the 'lookupcomplete' event, which fires once for every field that has a value looked up, causing it to re-add the same message over again.
Has anyone implemented something like this when working with collections? Or is there a more obvious way of doing this I am missing?