Copied to clipboard

Flag this post as spam?

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


  • Mike Chambers 635 posts 1252 karma points c-trib
    Jan 26, 2016 @ 17:20
    Mike Chambers
    0

    Umbraco Forms.. unlicensed behaviour?

    Is it the case that unlicensed umbraco forms will do nothing on submit?

    (unlike contour that had trial mode restrictions?)

    I've set up a simple form with send email workflow and the form does submit and I get my "thankyou message" but nothing added to the entries logging, or any sign of an email to the recipient...

    Is this the expected functionality when unlicensed?

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Jan 26, 2016 @ 18:29
    Dennis Aaen
    0

    Hi Mike,

    This is not the expected functionality when unlicensed. When you installed Umbraco Forms you will get 14 days trial period where you can see the data the user submit into your form.

    After this you should see some kind of trial mode restrictions, canĀ“t remember the exact words.

    If you have a license, and you still see the trial mode restrictions, feel free to email me on dennis (at) umbraco dot com, then we will find a solution.

    /Dennis

  • Mike Chambers 635 posts 1252 karma points c-trib
    Jan 26, 2016 @ 21:23
    Mike Chambers
    0

    Think I found my solution... one was getting this to work with CDF.. and I'd already set the jqueryui/validation as required elsewhere.. so had to change the renderform to just mode="form" Also had to then do the renderFormScripts, but can't see anyway to do this with cdf.. so rather than include on every single page I had to update for just templates where forms were rendered.

    @if (TempData["UmbracoForms"] != null && Model.Content.DocumentTypeAlias == "Contact" )
    

    then final one.. is an oversight I think in \Views\Partials\Forms\Script.cshtml for forms 4.1.5

    basically..

    <input type="hidden" id="[email protected]" value="@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model.Pages.SelectMany(p => p.Fieldsets).SelectMany(fs => fs.Containers).SelectMany(c => c.Fields).ToDictionary(f => f.Id, f => f.Value)))" />
    

    I was seeing this result in js console error, "Uncaught SyntaxError: Unexpected end of input"

    as was getting

    <input type="hidden" id="values_61d7f97784f544aba91fdad2919678f8" value="{"f3e39b3d-92f7-41fe-adc8-fd174cfb2841":"","ad96fce8-2bc7-4420-e9b1-0eaa7d3fce64":"","0f2163ca-2269-4ec7-e9df-ee4b4c77f6d8":"","0d44f921-6cf9-4aa3-bcff-43d2be08a85a":"","34de2c9a-0002-4ebc-983e-f8bf78e74a92":"","d6a5f698-e20d-4263-f092-3d28bc79a7fb":"","f80ed83f-117c-4b7a-85ae-3f52a27d68be":"","a45d98e9-c30a-4bea-ce66-4a055a4fd5f8":"","2825b0f3-443f-44dd-a80d-444ee3fa69a3":""}" />
    

    note the confused value="..." and then " inside the value

    changing in the script to single quotes, as per the two input lines preceeding it in the script seems to resolve.

    <input type="hidden" id="[email protected]" value='@Html.Raw(...)' />
    

    All seems to be working as expected now. - at least the simple implementation thus far.

    ps this was forms 4.1.5

Please Sign in or register to post replies

Write your reply to:

Draft