form.getFormFieldVisibility().addShowFieldElement(propertyName);
FormField formField = form.getFormAppearance().addFormField(propertyName, dateDefinition.getName(), formSet);
if(dateDefinition.isWritable()) {
// Use custom date-control
FormFieldControl control = new FormFieldControl();
control.setTemplate(AlfrescoConversionConstants.FORM_DATE_TEMPLATE);
control.addControlParameter(AlfrescoConversionConstants.FORM_DATE_PARAM_SHOW_TIME,
Boolean.toString(dateDefinition.isShowTime()));
control.addControlParameter(AlfrescoConversionConstants.FORM_DATE_PARAM_SUBMIT_TIME,
Boolean.toString(dateDefinition.isShowTime()));
formField.setControl(control);
} else {
// Read-only properties should always be rendered using an info-template
FormFieldControl control = new FormFieldControl();
control.setTemplate(AlfrescoConversionConstants.FORM_READONLY_TEMPLATE);
formField.setControl(control);
}
if(!form.isStartForm()) {
// Add to output properties, if needed