hello guys I need your help!! I wanna put a condition in a setFieldFormatting of a ComplexTableField but my condition isn't working it is my code:
$Currency = new ComplexTableField(
$this,
'Currencies', // relation name
'CurrencyP', // object class
array(
'Currency_Iso'=>'Currency Iso',
'Currency_Name'=>'Currency Name',
'Currency_Symbol'=>'Currency Symbol',
'Price'=>'Price',
'Number_Format'=>'Format',
'Currency_Default'=>'Currency Default',
"Active_Inactive" => "Active Inactive"
), // fields to show in table
"getCMSFields_forPopup" // form that pops up for edit
);
$Currency->setFieldFormatting(array('Currency_Default'=>'<input type=\"radio\" name=\"default\" value=\"$ID\"'.('$Currency_Default'=='1'?' checked="checked':' ').'>$ID' ));