Copied to clipboard

Flag this post as spam?

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


  • Chris 34 posts 134 karma points
    Dec 23, 2015 @ 16:00
    Chris
    0

    JQuery errors - Umbraco forms 4.1.4

    Using the latest version of forms, with unobtrusive validation enabled. There is a JavaScript error on load which then breaks the on submit validation. In the console there is an error with this line of JS:

    var contourFieldValues,
        recordValues = JSON.parse($("#values_" + formId).val()),
        fsConditions = JSON.parse($("#fsConditions_" + formId).val()),
        fieldConditions = JSON.parse($("#fieldConditions_" + formId).val()),
        form = $("#contour_form_" + formName);
    

    The reason its failing is the below hidden field on the form has the initial { of the value attribute in a double quote, so when the $("#values_" + formId).val() runs it is returning just a single { and not the actual value

    <input type="hidden" id="values_a8431b5084e941608bc34b30798eee08" value="{"e97ac842-0d76-49a8-b707-0f20d4794767":"","3a7a5a7d-d561-4916-c5b4-edc31696b617":"","6df4a1c4-ff00-4805-d4e8-1f1d5189770b":""}" />
    

    Has anyone encountered this error before?

  • James Strugnell 84 posts 192 karma points
    Feb 09, 2016 @ 09:43
    James Strugnell
    0

    Hi Chris,

    Yes we've just notived this same issue. We've upgraded to 4.1.5 in the hope this may have been fixed but it appears not. We should log it on the Umbraco Forms issue page.

    James.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Feb 09, 2016 @ 10:06
    Dennis Aaen
    0

    Hi Chris and James,

    You can see here how you can fix the issue in the current version that you are using. http://issues.umbraco.org/issue/CON-820

    The issue will of course be fixed in one of the next releases of Umbraco Forms.

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft