I've added the contour form to my tempate however I'm not getting an action set in the form tag. When I use
@using (Html.BeginForm())
it works fine and the form action is set. However I have an upload field on my form so need the enctype set. But changing the BeginForm call to the following results in an empty action attribute.
using (Html.BeginForm("ContourForm", "FormRender", FormMethod.Post, new { enctype = "multipart/form-data" }))
No action is set in preview either. The forms do seem to be posting today though.
I'm going to need to double check this as when I posted on Friday the forms weren't posting when the action was blank yet they seem to be working fine today. I was on a different PC on Friday so I wonder if the forms not posting is a client issue.
No form action
I've added the contour form to my tempate however I'm not getting an action set in the form tag. When I use
it works fine and the form action is set. However I have an upload field on my form so need the enctype set. But changing the BeginForm call to the following results in an empty action attribute.
Can anyone help with this?
Comment author was deleted
Hey,
And does the form work when you preview it from the Contour section?
No action is set in preview either. The forms do seem to be posting today though.
I'm going to need to double check this as when I posted on Friday the forms weren't posting when the action was blank yet they seem to be working fine today. I was on a different PC on Friday so I wonder if the forms not posting is a client issue.
Comment author was deleted
Ok please check and let me know what you find :)
I'm loosing my mind :(
It is posting the form on the different PC. I dunno wtf I did on Friday that stopped it from posting.
I still think it would be better if the action tag was filled in if possible.
is working on a reply...