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?

  • Comment author was deleted

    May 02, 2013 @ 15:57

    $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 :)

  • Comment author was deleted

    May 03, 2013 @ 11:25

    Great :)

Please Sign in or register to post replies

Write your reply to:

Draft