Getting field data in Client Script from Lookup Field record

Getting field data in Client Script from Lookup Field record

I am trying to bring field data from a related (Lookup) record into a Client Script to use it in calculations, however I cannot find any help or info on this subject.

I have a custom module (Properties) and a related record in a second custom module (Markets). From a Property form, I need to get the data from several fields in the related Market record to use in calculating other Property fields. I can figure out everything except how to get the fields from the Market record.

Appreciate any tips on this, and thanks in advance.

Richard