I have it working fine in an application I did a couple of years ago but when I try to use the exact same code in a new application my drop down box says SEL_CONTACT_TYPE. I have been trying for a couple of days but I am stumped. Thanks very much.
I think CONFIG.SELECTION.INC is not being referenced in common.inc.php in the same folder. Check common.inc.php of the original script, which you know is working.
I have the following code
CONFIG.SELECTION.INC
define( 'SEL_CONTACT_TYPE', "
C=Customer
S=Supplier
F=Friend
O=Other
" );
DF.FL.CONTACTS.INC
'contact_type'=>array(
XA_CLASS=>'CVSelection',
XA_CAPTION=>RSTR_CONTACT_TYPE,
XA_REQUIRED=>false,
XA_MIN_CHAR=>0,
XA_MAX_CHAR=>16,
XA_SEL_TEXT=>SEL_CONTACT_TYPE,
XA_SELECT_ON_TOP=>STR_SELECT_CAPTION,
XA_SEARCH_OP=>'s=',
XA_LIST=>'(sp)(sr)(fd)',
),
I have it working fine in an application I did a couple of years ago but when I try to use the exact same code in a new application my drop down box says SEL_CONTACT_TYPE. I have been trying for a couple of days but I am stumped. Thanks very much.