form->getRecord();
if($data && $data->ID && is_numeric($data->ID)) {
$idxField = $this->name . 'ID';
$hiddenField = "id() . "\" name=\"$idxField\" value=\"" . $this->attrValue() . "\" />";
$parentClass = $data->class;
$parentID = $data->ID;
$parentField = $this->name;
$iframe = "";
return $iframe . $hiddenField;
} else {
$this->value = _t('FileIFrameField.NOTEADDFILES', 'You can add files once you have saved for the first time.');
return FormField::Field();
}
}
}
?>