Copied to clipboard

Flag this post as spam?

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


  • QuasPie 25 posts 85 karma points
    May 02, 2013 @ 15:50
    QuasPie
    0

    Contour Workflow - Save as Doc - Where to save xPath problem

    Hi!

    I'm trying to make a workflow for my contour form, making it save the enty as an umbraco document at approval.
    I need it to save the node as a child to the page of where the form was submitted, but I can't seem to get the xPath expression right.

    I've tried:

    $currentPage
    $currentPage/@id
    .
    /
    pageid
    PageID
    #PageID
    [#PageID]

    and more..

    ..But none of them seemed to work.

    I can't find anything about it in the forums, nor in the documentation.
    Anyone had this problem before me?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    May 02, 2013 @ 15:57
    Tim Geyssens
    100

    $currentPage/@id should do the trick , could you try placing it on submit if that works (might be that the xpath doesn't work from the entries viewer)

  • QuasPie 25 posts 85 karma points
    May 02, 2013 @ 16:29
    QuasPie
    0

    Hi Tim,

    Thanks for the quick reply :)

    $currentPage/@id does work when placing it on submit.
    I might as wel keep it there, you have to be logged in to see the form anyways, so no reason for admin approval.

    ..and thanks again :)

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    May 03, 2013 @ 11:25
    Tim Geyssens
    0

    Great :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies