Copied to clipboard

Flag this post as spam?

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


  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 08, 2014 @ 14:27
    Jan Skovgaard
    0

    Send to page not working

    Hi guys

    Currently we're having a weird issue with Contour.

    When we choose a page from the content tree where we want our users to end up after submitting a post it keeps posting to itself rather than the selected page.

    We saw this issue with version 3.0.19 and tried upgrading to 3.0.21 - But the issue remains.

    We're using Umbraco 6.1.6.

    Does anyone know if there is an easy fix for this or if we need to report an issue about it?

    Cheers, Jan

  • Comment author was deleted

    May 08, 2014 @ 15:14

    And does the UI remember your choice? Maybe due to some core changes in Umbraco will check

  • Comment author was deleted

    May 08, 2014 @ 15:15

    And page is published right? That you are sending to?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 08, 2014 @ 15:17
    Jan Skovgaard
    0

    If by UI you're thinking about whether or not the setting in Contour is remembered? Then yes it is :)

    And yes the page is published since it's pointing to the frontend of the site.

    Thanks Tim.

    Cheers, Jan

  • Comment author was deleted

    May 08, 2014 @ 15:19

    Ok will have to check it then, will try to reproduce

  • Iulia Maria Jensen 40 posts 71 karma points
    May 08, 2014 @ 15:21
    Iulia Maria Jensen
    0

    Hi Tim,

    The UI doesn't remember the selected/filled in values and the page it should be sending to is published correctly.

    When we click on the submit button, it posts to the same page (or it looks like it does, since the page blinks), but no entries are registered.

    We have though discovered that after we submit, if we recycle the app pool and then resend the form (that would mean: first submit, second refresh -> which should cause a re-submission), it works. And it looks like upon re-submission after recycling, the entries are also registered..

    Best,

    Iulia

     

  • Comment author was deleted

    May 08, 2014 @ 15:22

    Ok so it doesn't remember the selected page, that would be the problem then, looking into it, as a temp workaround you could just update the value in the db (sendtopage column on ufform table)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 08, 2014 @ 15:24
    Jan Skovgaard
    0

    Hi Tim

    YES! It DOES remember the page we select. The UI Iulia is referring to is the form fields rendered on the frontpage.

    On the "Settings" tab on the form the selected page is remembered and the page is published.

    Sorry about the confusion.

    /Jan

  • Iulia Maria Jensen 40 posts 71 karma points
    May 08, 2014 @ 15:25
    Iulia Maria Jensen
    0

    Thanks Jan :) Sorry Tim :P

  • Comment author was deleted

    May 08, 2014 @ 17:20

    Ok no worries, taking a look tomorrow so more details then :)

  • Rasmus Lynggaard 118 posts 325 karma points
    May 08, 2014 @ 17:52
    Rasmus Lynggaard
    1

    Jan, are you by any chance using code first to create your forms?

    We've been experiencing similar issues using code first

    http://issues.umbraco.org/issue/CON-523

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 08, 2014 @ 19:07
    Jan Skovgaard
    0

    Hi Rasmus

    Good input - but unfortunately not. I'll give the issue a vote anyhow.

    /Jan

  • Joseph 59 posts 140 karma points
    May 09, 2014 @ 04:48
    Joseph
    0

    I have also just run into this issue (version 3.0.18). Message on submit works but not Send to page (the only effect Send to page has is it effectively disables the Message on submit).

  • Iulia Maria Jensen 40 posts 71 karma points
    May 09, 2014 @ 12:37
    Iulia Maria Jensen
    0

    Hi,

    Any news?

    /Iulia

  • Comment author was deleted

    May 09, 2014 @ 12:38

    Looking into it... update later today :)

  • Comment author was deleted

    May 09, 2014 @ 14:59

    Works fine on Umbraco 7, just tested 

    Will try on v6

  • Comment author was deleted

    May 09, 2014 @ 15:15

    Test latest Contour on 6.1.6 and that also works fine... so not sure what is going wrong... maybe you have a workflow attached that is doing a redirect? Also make sure you don't have a value for the xpatch setting (when sending to a page) 

  • Comment author was deleted

    May 09, 2014 @ 15:17

    Could you send me the site tg at umbraco dot come then I can debug

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 09, 2014 @ 23:18
    Jan Skovgaard
    0

    Hi Tim

    Thanks for getting back to us. We don't have a workflow that does any redirecting as far as I know.

    But we'll see if we can provide you some access to the site on monday if you don't mind? Just saw your reply now...and now it's a little late...right? :)

    Have a nice weekend mate!

    /Jan

  • Comment author was deleted

    May 12, 2014 @ 12:37

    Just tested with Jan and Iulia's site and it works fine, if I preview the form it does the redirect... just make sure you don't have nested forms and that you are not redirecting to the page the form is on...

  • Comment author was deleted

    May 12, 2014 @ 12:50

    So must be something with the markup on the site, make sure you don't have nested forms..

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 13, 2014 @ 11:28
    Jan Skovgaard
    0

    Hi Tim

    Thanks for your response and for looking into this.

    This morning I just gave Contour a spin on a fresh install of Umbraco 6.1.6 rendering forms using @Umbraco.Field() on the template and it worked fine. Tested using Webforms and MVC. No problems.

    Then I had a look on another client of ours where the functionality is working fine too...The thing is...where using an XSLT file to render the page.

    On the client where it all works fine we're using the umbraco.library:Item extension in order to render content from the rich text field and ensuring that macroes can be rendered. The client where this is working is running Umbraco 4.11.10

    <xsl:value-of select="umbraco.library:Item($currentPage/@id,'content')" />
    

    But this snippet does not work since the release of Umbraco 6.1 so we've changed it to use the umbraco.library:RenderMacroContent extension instead like this

    <xsl:value-of select="umbraco.library:RenderMacroContent($content, $currentPage/@id)" disable-output-escaping="yes"/>
    

    I suspect that this is where things go wrong for some reason - Could you try and have a look at this scenario? Is there an easy workaround?

    I should mention that most of the page-rendering is structured in this particular XSLT file so it's not an option for us to refactor using Razor or @Umbraco.Fields at the time of writing.

    Looking forward to hearing from you.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft