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 4265 posts 9144 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 86 posts 560 karma points MVP c-trib
    May 01, 2018 @ 09:41
    Daniël Knippers
    100

    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 4265 posts 9144 karma points MVP 2x admin c-trib
    May 01, 2018 @ 09:59
    Ismail Mayat
    0

    cheers that works

  • aaeda 104 posts 136 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 19 posts 67 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 104 posts 136 karma points
    Oct 07, 2018 @ 16:19
    aaeda
    0

    Hello

    No only umbraco forms, but having the same error.

    thanks

  • Daniël Knippers 86 posts 560 karma points MVP 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 104 posts 136 karma points
    Oct 09, 2018 @ 07:45
    aaeda
    0

    Hello Daniel

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

    thanks

Please Sign in or register to post replies

Write your reply to:

Draft