Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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>}"
Can anyone help please?
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>">
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?
I Think i am not allowed to user runat="server"
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
ok but if I remove runat="server" it the url for action is not rendered
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
Can anyone help please?
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>">
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?
I Think i am not allowed to user runat="server"
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
ok but if I remove runat="server" it the url for action is not rendered
is working on a reply...