Copied to clipboard

Flag this post as spam?

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


  • dominik 711 posts 733 karma points
    Apr 29, 2011 @ 11:49
    dominik
    0

    Use localLink for form action

    Hello everybody,

    I got the localLink inside my template and it is working for links (href attribute)

    If i try to add the same in the action attribute of a form it does not work

    here is my script

    action="{localLink:<umbraco:Item field='intLinkCreateAccount' recursive='true' runat='server'></umbraco:Item>}"
  • dominik 711 posts 733 karma points
    May 02, 2011 @ 10:19
    dominik
    0

    Can anyone help please?

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 02, 2011 @ 13:56
    Tom Fulton
    0

    You could try using Inline XSLT instead to get the URL:

    <form action="<umbraco:Item field='intLinkCreateAccount' recursive='true' runat='server' Xslt='umbraco.library:NiceUrl({0})'></umbraco:Item>">

  • dominik 711 posts 733 karma points
    May 02, 2011 @ 14:25
    dominik
    0

    If i use this it looks ok in the source code but if i try to submit the form it does not sends the field values.

    If i use a static url instead it works

    Any idea?

  • dominik 711 posts 733 karma points
    May 02, 2011 @ 14:27
    dominik
    0

    I Think i am not allowed to user runat="server"

     

  • david 46 posts 81 karma points
    May 02, 2011 @ 16:39
    david
    0

    You can only set the action when the form is not runat="server", however you can easily bypass .net forms and submit to wherever you like  more info here: http://www.w3schools.com/aspnet/aspnet_forms.asp

  • dominik 711 posts 733 karma points
    May 02, 2011 @ 16:53
    dominik
    0

    ok but if I remove runat="server" it the url for action is not rendered

     

  • 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