Say you had a custom field called "agent_type" so you have a directory called
custom/clients/base/fields/agent_type
and that directory has agent_type.js in it. Now in that script it preforms some sort of check on the data in this field, say a duplicate check. So if there is a duplicate it sets a flag in that JS
How would you get to that flag from the record.js? That is to say what is the accepted method of accessing shared data between scripts in SugarCRM?