Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    May 01, 2018 @ 09:20
    Ismail Mayat
    0

    Cannot read property 'settings' of undefined

    I have blank install of umbraco 7.10.3 and 7.10.4 I have forms installed lastest version. When i create form and edit properties all works fine. I install perplex and now when i try to edit existing properties on a form nothing happens. Looking at console i get the following javascript error:

    enter image description here

    Anyone seen this before?

    Clicking through to the actual error the issue is in umbraco.forms.js

        loadFieldTypeSettings : function(field, fieldtype){
    
            var stng = angular.copy(fieldtype.settings);
    
            if(field.fieldTypeId !== fieldtype.id){
                field.settings = {};
            }
    

    fieldtype.settings is null

  • Daniël Knippers 153 posts 1117 karma points MVP 2x c-trib
    May 01, 2018 @ 09:41
    Daniël Knippers
    101

    Hi Ismail,

    We do override the formResource.getAllFieldTypesWithSettings to show and hide certain field types (to hide means it cannot be added to a form anymore, as it will not be an option in the pop-up window). For example, the "Short Answer" is hidden as we provide an alternative.

    It seems that trying to edit a form that has one of the fields that we hide by default then causes that issue, as all form fields are loaded when the form is viewed, but then the fieldtype cannot be found as the same method is used.

    If you goto \App_Plugins\PerplexUmbracoForms\PerplexUmbracoForms.config you can simply change all the hide="true" to hide="false" and it should work again (after a quick reset).

    Regards, Daniël

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    May 01, 2018 @ 09:59
    Ismail Mayat
    0

    cheers that works

  • aaeda 117 posts 150 karma points
    Oct 05, 2018 @ 10:48
    aaeda
    0

    Hello

    I am having the same issue but with Umbraco forms 6.0.8. Its the same error message and I cannot edit the settings of a field.

    Can someone pleas advise? thanks

  • Lee 35 posts 84 karma points
    Oct 05, 2018 @ 16:05
    Lee
    0

    The fix proposed by Daniël Knippers only works if you are using the Perplex on Steroids package.

    I just had to implement the fix. It would be nice if this would get properly fixed in the package. I just reported it on the GitHub project page: https://github.com/PerplexInternetmarketing/Perplex-Umbraco-Forms/issues/10

    @aaeda, are you using Perplex in your Forms installation?

  • aaeda 117 posts 150 karma points
    Oct 07, 2018 @ 16:19
    aaeda
    0

    Hello

    No only umbraco forms, but having the same error.

    thanks

  • Daniël Knippers 153 posts 1117 karma points MVP 2x c-trib
    Oct 09, 2018 @ 07:23
    Daniël Knippers
    0

    Hi aaeda,

    If you are only using UmbracoForms and not our package then we can unfortunately not really do anything on our side to fix it. Can you verify though that you do not have the App_Plugins\PerplexUmbracoForms folder in your installation? Perhaps it has been installed in the past and was not properly removed so it might still be loading the JavaScript that causes this issue.

    If that folder is not there it might be an UmbracoForms issue. We only provide an add-on package with some extra fieldtypes so bug reports on this forum should be related to our package :)

    Could you also post a screenshot of your error message, perhaps it is not entirely the same.

    Regards, Daniël

  • aaeda 117 posts 150 karma points
    Oct 09, 2018 @ 07:45
    aaeda
    0

    Hello Daniel

    Ok thanks. I think I posted in the wrong thread.

    thanks

  • Debasish Gracias 32 posts 163 karma points
    Sep 17, 2019 @ 14:10
    Debasish Gracias
    0

    Hi,

    I am having the same issue but with Umbraco forms 7.15.3 and Forms 7.0.4. Its the same error message and I cannot edit the settings of a field.

    Can someone please advise?

    Thank you!

  • Daniël Knippers 153 posts 1117 karma points MVP 2x c-trib
    Sep 17, 2019 @ 14:18
    Daniël Knippers
    0

    Hi,

    Did you try my first answer to Ismail in this thread? Like Lee mentioned to the other person, this is only relevant if you are using our package, are you? If you are not using our package you'd have to search Umbraco Forms support in some other place.

  • Debasish Gracias 32 posts 163 karma points
    Sep 17, 2019 @ 15:05
    Debasish Gracias
    0

    Yes I had tried that and your solution was working with Umbraco 7.12.3.After updating to 7.15.3 it stopped working again.

  • Daniël Knippers 153 posts 1117 karma points MVP 2x c-trib
    Sep 17, 2019 @ 15:09
    Daniël Knippers
    0

    Strange, and you are using our package? Can you also check if App_Plugins\PerplexUmbracoForms exists? And if you remove that folder (or just remove our package), does the problem go away?

Please Sign in or register to post replies

Write your reply to:

Draft