var siteService = widgetUtils.findObject(model.jsonModel, "id", "SITE_SERVICE");
if (siteService && siteService.config)
{
siteService.config.widgetsForEditSiteDialog = [
{
id: "EDIT_SITE_FIELD_DEPTID",
name: "alfresco/forms/controls/TextBox",
targetPosition: "START",
config: {
fieldId: "DEPTID",
label: "DeptId",
name: "DeptId",
description: "DeptId is the uniqueid for each site in DMS"
}
},
{
id : "EDIT_SITE_FIELD_TITLE",
name : "alfresco/forms/controls/TextBox",
config : {
fieldId : "TITLE",
label : "create-site.dialog.name.label",
name : "title",
requirementConfig : {
initialValue : true
},
validationConfig : [ {
validation : "maxLength",
length : 256,
errorMessage : "create-site.dialog.name.maxLength"
}, {
scopeValidation : true,
warnOnly : true,
validation : "validationTopic",
validationTopic : "ALF_VALIDATE_SITE_IDENTIFIER",
validationValueProperty : "title",
negate : true,
validateInitialValue : false,
validationResultProperty : "response.used",
errorMessage : "create-site-dialog.title.already.used"
} ]
}
},
{
id : "EDIT_SITE_FIELD_DESCRIPTION",
name : "alfresco/forms/controls/TextArea",
config : {
fieldId : "DESCRIPTION",
label : "create-site.dialog.description.label",
name : "description",
validationConfig : [ {
validation : "maxLength",
length : 512,
errorMessage : "create-site.dialog.description.maxLength"
} ]
}
},
{
id : "EDIT_SITE_FIELD_VISIBILITY",
name : "alfresco/forms/controls/RadioButtons",
config : {
fieldId : "VISIBILITY",
label : "create-site.dialog.visibility.label",
name : "visibility",
optionsConfig : {
fixed : [
{
label : "create-site.dialog.visibility.public",
description : "create-site.dialog.visibility.public.description",
value : "PUBLIC"
},
{
label : "create-site.dialog.visibility.moderated",
description : "create-site.dialog.visibility.moderated.description",
value : "MODERATED"
},
{
label : "create-site.dialog.visibility.private",
description : "create-site.dialog.visibility.private.description",
value : "PRIVATE"
}
]
}
}
} ];
siteService.config.widgetsForCreateSiteDialogOverrides = [{
id: "CREATE_SITE_FIELD_DEPTID",
name: "alfresco/forms/controls/TextBox",
targetPosition: "START",
config: {
fieldId: "DEPTID",
label: "DeptId",
name: "DeptId",
description: "DeptId is the uniqueid for each site in DMS"
}
}
];
}
Regards
Vinutha M P