Copied to clipboard

Flag this post as spam?

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


  • aviraj 3 posts 72 karma points
    Dec 16, 2015 @ 16:36
    aviraj
    0

    Nested html form issue in umbraco

    Problem statement:

    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>
    
  • Alex Skrypnyk 6133 posts 23952 karma points MVP 7x admin c-trib
    Dec 18, 2015 @ 11:38
    Alex Skrypnyk
    0

    Hi Aviraj,

    What version Umbraco are you using? How are you trying to paste form ?

Please Sign in or register to post replies

Write your reply to:

Draft