Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,
I've created a custom DataType for use in a macro using the colour picker. My manifest looks like the following:
{ propertyEditors:[ { name: "Defined Colour Picker", alias: "Custom.DefinedColorPicker", icon: "icon-wand", group: "Pickers", isParameterEditor: true, editor:{ view: "ColorPicker" }, defaultConfig: { items: ["#000000", "#FFFFFF"] }, validation: { mandatory: false } } ],
}
However, I'm getting the following error:
Cannot read property 'mandatory' of undefined at e.ColorPickerController.$scope.validateMandatory [as valPropertyValidator]
I can see the troublesome line of code is the (in umbraco.controllers.js)
isValid: !$scope.model.validation.mandatory || ($scope.model.value != null && $scope.model.value != "")
As you can see, I added the mandatory field to my manifest but it hasn't solved it :(
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Colour Picker JS Error
Hi All,
I've created a custom DataType for use in a macro using the colour picker. My manifest looks like the following:
}
However, I'm getting the following error:
I can see the troublesome line of code is the (in umbraco.controllers.js)
As you can see, I added the mandatory field to my manifest but it hasn't solved it :(
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.