Hi,
The script below runs when a JobID is selected on an invoice form. It creates a dropdown of all the customers associated with the job. The dropdown is of names only, which are the keys in the "contacts_map". What I really want is to display the contact names as display only, but have the ContactID as the value held to the form.
<select>
<option value="ContactID">ContactName</option>
<option value="ContactID">ContactName</option>
<option value="ContactID">ContactName</option>
<option value="ContactID">ContactName</option>
</select>
As you might create with a "Lookup" field. Is this possible?
Thanks
Guy
_________________________________________
contacts_map = thisapp.utilities.getContactMapforJobID(input.JobID);
contacts_map_keys = contacts_map.keys();
for each key in contacts_map_keys
{
CustomerSelect:ui.add(key);
}
show CustomerSelect;