asked    Bella     2018-10-12       angularjs       12 view        1 Answer

[SOLVED] Umbraco 7.3.4 - Custom Data Type Value Doesn't Change

I have created a custom data type to deal with character limits on text areas.

I have previously been following a demo where $scope.info = "Hello World" before the user started typing in the text area.

I have since deleted this so it should have removed this text from the umbraco content interface.

But it is still showing the "Hello World" On the right side of the text box.

Customer Editor Angular Controller:

angular.module("umbraco").controller("My.CustomEditorController", function 

    ($scope, notificationsService) {
        $scope.info = "";

        $scope.limitChars = function () {
            var limit = parseInt($scope.model.config.limit);

            if ($scope.model.value.length > limit) {
                $scope.info = "You cannot write more than " + limit + " characters!";
                $scope.model.value = $scope.model.value.substr(0, limit);
                notificationsService.remove(0);
                notificationsService.warning($scope.info);

            }
            else {
                $scope.info = "You have " + (limit - $scope.model.value.length) + " characters left.";
            }
        }

       });

  1 Answer  

        answered    Jeremy     2018-10-12      

have you tried to increment the version in the config/ClientDependency.config? seems like a caching issue on some level – Eyescream

Did this and it worked.





Your Answer





 2018-10-12         Maurice

Azure Umbraco Web Site down after azure restore

Error running Reader: SQL Statement:SELECT id, domainName FROM umbracoDomains ORDER BY idI performed an Azure restore of my umbraco website which is using the umbraco.sdf file in the App_Data folder. After the restore I have this error. It errors when I try to log into the Umbraco backend. The Umrbaco.sdf file is only 64KB is that normal? It seems like Azure deleted some of the tables from the .sdf file on restore? In the meantime my site is down and there's no hope in retrieving all my data in my db. Help please! As far as I know, restoring the web app would replace you...
 azure                     1 answers                     92 view
 2018-10-12         Tobey

Get umbraco fields inside form view

I need to have a custom view for an umbraco 7 form, that have a special column layout, but my problem is that I cannot output data from an umbraco field with .GetPropertyValue("formHeader")I am rendering the form with @Umbraco.RenderMacro("FormsRenderForm", new { FormGuid = "6189b8c2-980a-4f02-bcec-33b170020a22" })Inside my Form.cshtml I would like to insert an umbraco field .GetPropertyValue("formHeader")But I cannot seem to get it to work@inherits Umbraco.Web.Mvc.UmbracoTemplatePage will return Error loading Partial View script (file: ~/Views/MacroPartials/InsertUmbra...
 razor                     2 answers                     93 view
 2018-10-12         Magee

Umbraco Forms image upload to media picker

I've read on our.umbraco.org that the Umbraco Forms' "file upload" can be used to upload images that can then be used by the media picker.I've created a workflow which creates an Umbraco document, and I mapped the file upload to the document type's media picker and all the other properties are of course mapped as well.Whenever I submit the form, it creates the unpublished node as it should, and it maps all the properties EXCEPT the media picker. I can't figure out why...I'm on Umbraco version: 7.3.7.Thank you in advance. This is an old question but just for the records. ...
 c#                     1 answers                     94 view