Copied to clipboard

Flag this post as spam?

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


  • Tony Lorentzen 79 posts 158 karma points
    Oct 08, 2010 @ 10:30
    Tony Lorentzen
    0

    Nested forms problem

    I can't get this to work because there are effectively two forms nested into eachother.

    My masterpage has a <form runat="server"> and the RVContactForm.xslt has it's own <form runat="server"> so it's effectively not working (in Safari and Firefox on Mac - at least). Any idea on how to fix this? I can't remove my <form runat="server"> from the masterpage as I have usercontrols that need it.

    Any ideas? I can't be the only one having this problem?

  • Dirk De Grave 4539 posts 6013 karma points MVP 3x admin c-trib
    Oct 08, 2010 @ 11:10
    Dirk De Grave
    0

    you can remove the one from the RVContactForm.xslt. But will need to make some adjustments as you'll be having multiple submit buttons on your form. Can fix that by setting default buttons. Here's some more info on a possible solution.

     

    Cheers,

    /Dirk

  • Tony Lorentzen 79 posts 158 karma points
    Oct 08, 2010 @ 12:14
    Tony Lorentzen
    0

    Thanks for you quick reply. Dirk. In fact I removed the <form> from the RVContactForm.xslt and did some changes in the .js file to make sure it was referencing the correct form and added the id="ContactForm" to the <div> enclosing the actual form on the page so that it would hide the correct content after posting the form. Seemed to work :-)

  • Eran 292 posts 436 karma points
    Oct 08, 2010 @ 14:27
    Eran
    0

    thanks dirk for the answer and tony, if everything is working fine now, please mark dirk solution as an answer.

    thanks,

    Eran.

  • Eran 292 posts 436 karma points
    Oct 20, 2010 @ 04:34
    Eran
    0

    just to let you know that i uploaded new version of this package with bug fixes.
    BTY, if you like this project please vote for it (in the project page at the top right corner).

    Thanks,

    Eran.

Please Sign in or register to post replies

Write your reply to:

Draft