I'm working on web application which is developed in Umbraco CMS
.Net framework. and I want to add one html form in existing umbraco
page. When I add my html form and run the application that time
umbraco add one parent form to my form. And when I try to post my form
through JavaScript it gives me error "Uncaught TypeError: Cannot read
property 'submit' of null".
.
See below code.
<form action="a"> // Umbraco predefined form appears after run which we can't remove <input.../>
<form name="myform" action="b"> // My form goes here.
<input.../>
<input.../>
<input.../>
</form>
<input.../>
</form>
<script>
document.getElementById("myform").submit(); //it gives me error : Uncaught TypeError: Cannot read property 'submit' of null
</script>
Nested html form issue in umbraco
Problem statement:
.
See below code.
Hi Aviraj,
What version Umbraco are you using? How are you trying to paste form ?
is working on a reply...