- { 'field' => 'contactnum',
- 'type' => 'contact',
- 'colspan' => 7,
- 'o2m_table' => 'contact',
- 'm2_label' => 'Contact',
- 'm2_error_callback' => $m2_error_callback,
-
+ { 'field' => 'contactnum',
+ 'type' => 'contact',
+ 'colspan' => 7,
+ 'prospectnum' => $prospectnum,
+ 'm2m_method' => 'prospect_contact',
+ 'm2m_dstcol' => 'contactnum',
+ 'm2_label' => 'Contact',
+ 'm2_error_callback' => $m2_error_callback,
+ 'include_opt_callback' => sub { 'for_prospect' => 1 },
+ 'js_spawn_test' => 'document.edit_topform.residential_commercial_Commercial.checked',