Copied to clipboard

Flag this post as spam?

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


  • Daniel Meltesen 6 posts 106 karma points
    Apr 26, 2016 @ 07:28
    Daniel Meltesen
    0

    "Add field" not working

    I'm having an issue with the "add field" element on Umbraco form. Clicking the plus icon should activate the addItemOverlay but nothing happens.

    I'm unable to see what the issue is, no errors in console so i'm in the dark any suggestions on where to look or anyone had similar issue?

    Running: Umbraco v.7.3.1 Umbraco Forms v.4.2.1

    I have a test server running: Umbraco v.7.3.1 Umbraco Forms v.4.1.5

    "Add field" works on the test server so i tried to uninstall Forms from live server and adding older version of Forms (v.4.1.5) sadly this didnt solve the issue.

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Apr 26, 2016 @ 07:34
    Warren Buckley
    0

    Hello Daniel,
    I think there is current UI bug that I also encounter currently.

    Can you please try clicking the plus button twice, to see if this resolves your issue.

    Currently the UI is getting some love for the next version & this will no longer be an issue.

    Let me know if this works for you.

    Thanks,
    Warren

  • Daniel Meltesen 6 posts 106 karma points
    Apr 26, 2016 @ 07:49
    Daniel Meltesen
    0

    Sadly nope :/ even after my clicking bonanza nothing happens.

    Not exactly true, something happens. Seems like the addItemOverlay event runs and overlayMenu gets rendered in the Dom but without any content, only an empty div.

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Apr 26, 2016 @ 08:23
    Warren Buckley
    0

    Haha clicking bonaza. I now have a vision of you clicking frantically in my mind.

    Sorry to hear this is causing you an issue. Can you check the browser tools and network requests when you do get the overlay to appear. There should be a network request to get all the field types available to insert.

    It sounds like this is returning no items for an unknown reason. Is there anything in the UmbracoLog file that may be able to help us?

    Thanks,
    Warren

  • Daniel Meltesen 6 posts 106 karma points
    Apr 26, 2016 @ 08:53
    Daniel Meltesen
    0

    Much clicking very wow! ;)

    No entries in the UmbracoLog file regarding the "add field". In the network requests it shows that it tries to get the addItem.html but the status returns "Cancelled" no other clues to go on.

  • Chris Wilson 100 posts 377 karma points
    Apr 26, 2016 @ 09:38
    Chris Wilson
    1

    Hi Daniel,

    I just experienced this issue myself but with Archetype fields rather than Forms - the add button was visible but clicking it did nothing, there were no Trace Log errors, no console errors.

    I confirmed this behaviour on a test server, but could not replicate on local.

    It turns out the problem was related to the ClientDependency caching of page assets, you can resolve this by deleting the following folders:

    • /AppData/ClientDependency
    • /AppData/TEMP/ClientDependency

    Give it a shot, I hope this helps!

    /Chris

  • Daniel Meltesen 6 posts 106 karma points
    Apr 26, 2016 @ 10:32
    Daniel Meltesen
    0

    @Chris, gave your solution a shot, deleted /AppData/TEMP/ClientDependency had no AppData/ClientDependency in our solution, restarted server but yet still no luck.

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Apr 26, 2016 @ 10:48
    Warren Buckley
    0

    Daniel,
    Ok this is very odd. You said you uninstalled & re-installed I am wondering if something has gone awol as part of this process perhaps?

    Does this present a problem if you are to install forms into a new test site?

  • Daniel Meltesen 6 posts 106 karma points
    Apr 27, 2016 @ 08:59
    Daniel Meltesen
    100

    After a tideous amount of file comparrison we found the issue.

    It turned out that we had done som UrlRewriting in the UrlRewriting.config which resulted in rewriting of the paths to App_Plugins/UmbracoForms/Backoffice

    So if others encounter weird issues with the "Add field" on a form and neither a frantic clicking or deleting TEMP/ClientDependency works make sure to check if you have some UrlRewriting which could conflict with Forms.

    Thanks for the help

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Apr 27, 2016 @ 09:09
    Warren Buckley
    1

    Daniel,
    Thanks for updating this issue.

    Do you mind sharing what URLRewriting rule that was interfering too much with the Umbraco Forms tool, so that others who may run into this problem do not experience this as well?

    Thanks,
    Warren

  • Daniel Meltesen 6 posts 106 karma points
    Apr 27, 2016 @ 10:01
    Daniel Meltesen
    0

    This is what we had in the urlRewriting.config and gave us the issue.

    <add name="301ReDirect_ToLoweCase"
              redirectMode="Permanent"
              redirect="Application"
              virtualUrl="^~/((?!ScriptResource.axd)(?!WebResource.axd)(?!DependencyHandler.axd)(?!umbraco/)(?!App_Plugins/)(?!App_plugins/)(?!assets/)(?!css/).*[A-Z])"
              rewriteUrlParameter="ExcludeFromClientQueryString"
              destinationUrl="{ToLower:{R:0}}"
              ignoreCase="false" />
    

    What we did to solve this we're to delete it from UrlRewriting.config and set up following rule in the IIS Redirect Module:

    <rule name="LowerCaseRule1" stopProcessing="true">
        <match url="[A-Z]" ignoreCase="false" />
        <action type="Redirect" url="{ToLower:{URL}}" />
        <conditions>
            <add input="{URL}" pattern="App_Plugins" negate="true" />
            <add input="{URL}" pattern=".axd" negate="true" />
            <add input="{URL}" pattern="css/" negate="true" />
             <add input="{URL}" pattern="assets/" negate="true" />
             <add input="{URL}" pattern="umbraco/" negate="true" />
        </conditions>
    </rule>
    

    Hope this could help others if encountering similar issues.

Please Sign in or register to post replies

Write your reply to:

Draft