Blake Watt (Clerke)
03/27/2024, 8:39 PMLewis Heaton
03/27/2024, 8:45 PMLewis Heaton
03/27/2024, 8:51 PMRob Schall
03/27/2024, 8:58 PMRob Schall
03/27/2024, 8:59 PMRob Schall
03/27/2024, 8:59 PMRob Schall
03/27/2024, 8:59 PMRob Schall
03/27/2024, 9:00 PMBlake Watt (Clerke)
03/27/2024, 9:02 PMLewis Heaton
03/27/2024, 9:08 PMRob Schall
03/27/2024, 9:09 PMangular.module("umbraco").controller("UmbracoForms.SettingTypes.EmailMapperController",
function ($scope, $routeParams, pickerResource) {
function init() {
if (!$scope.setting.value) {
$scope.mappings = [];
} else {
$scope.mappings = JSON.parse($scope.setting.value);
}
var formId = $routeParams.id;
if (formId === -1 && $scope.model && $scope.model.fields) {
} else {
pickerResource.getAllFields($routeParams.id).then(function (response) {
$scope.fields = response.data;
});
}
}
$scope.addMapping = function () {
$scope.mappings.push({
alias: "",
staticValue: ""
});
};
$scope.deleteMapping = function (index) {
$scope.mappings.splice(index, 1);
$scope.setting.value = JSON.stringify($scope.mappings);
};
$scope.stringifyValue = function () {
$scope.setting.value = JSON.stringify($scope.mappings);
};
init();
});
Rob Schall
03/27/2024, 9:11 PMLewis Heaton
03/27/2024, 9:11 PMLewis Heaton
03/27/2024, 9:12 PMRob Schall
03/27/2024, 9:12 PMLewis Heaton
03/27/2024, 9:14 PMLewis Heaton
03/27/2024, 9:15 PMRob Schall
03/27/2024, 9:16 PMLewis Heaton
03/27/2024, 9:16 PMRob Schall
03/27/2024, 9:16 PMLewis Heaton
03/27/2024, 9:21 PMBlake Watt (Clerke)
03/27/2024, 9:36 PMLewis Heaton
03/27/2024, 9:36 PM~/App_Plugins/UmbracoForms/backoffice/Common/
folder, so try again with the absolute path in the [Setting] attribute... Again, this is working on v13 so could be a v12 quirk.Lewis Heaton
03/27/2024, 9:37 PMRob Schall
03/27/2024, 9:39 PMLewis Heaton
03/27/2024, 9:40 PMRob Schall
03/27/2024, 9:41 PMRob Schall
03/27/2024, 9:41 PMBlake Watt (Clerke)
03/28/2024, 2:35 PM