I know I'm not the first person to ask this question, it's been referenced here (no replies), here (no solution), here (no solution), and here (no replies).
So my question is this. Am I right in thinking that if I need a second Contour form on a page, e.g. a newsletter signup in the footer, I should be using the RestContour package? My forms have already been styled to match the existing Contour markup. It's looking like it's going to be a pain to recreate that exactly using jQuery, and that maybe I should just rebuild the form nicely and then restyle it. Am I on the right track here?
Bonus question: can I assume that this will no longer be an issue with the next version of Contour as presumably it will be MVC-enabled and we can avoid the single server-side form on a page issue?
Super extra bonus for anyone who's achieved this before and wants to share some code ;)
If both forms are withing the same form tag with runat server atttribute it should work (not sure if it's an option for you to move the form tag more on top).
Of course in Contour 3.0 (that will be out very soon) you'll be able to have multiple forms without a runat server form tag, each form will basicly live inside it's own form tag
Thanks for getting back to me and showing me the error of my ways. It looks like you CAN have two Contour forms sitting happily together on a page. In my case there seems to be a css conflict with one particular form. All other forms work fine (together and alone) but this one doesn't even work alone on the page. Remove the css and it works just fine. So now to find that bug and squash it!
My experience of running the non REST contour forms is a bit limited, but if you decide to go the CultivRest route you should be able to get it up and running pretty quickly I can give you some starter code that should help too.
I have also asked Ally to check this out as she has just been doing loads of mucking about with contour.
Contour with multiple forms on a page
Hi all,
I know I'm not the first person to ask this question, it's been referenced here (no replies), here (no solution), here (no solution), and here (no replies).
Finally, this leads me to Cultiv's RestContour package.
So my question is this. Am I right in thinking that if I need a second Contour form on a page, e.g. a newsletter signup in the footer, I should be using the RestContour package? My forms have already been styled to match the existing Contour markup. It's looking like it's going to be a pain to recreate that exactly using jQuery, and that maybe I should just rebuild the form nicely and then restyle it. Am I on the right track here?
Bonus question: can I assume that this will no longer be an issue with the next version of Contour as presumably it will be MVC-enabled and we can avoid the single server-side form on a page issue?
Super extra bonus for anyone who's achieved this before and wants to share some code ;)
Thanks!
David
Hi David,
Are you sure you cant have more than one form on a page have you already tried it?
I am sure I have done the same thing you have described in the past (newsletter signup in footer) - maybe I am getting my wires crossed!
Let me know how you get on -
Cheers,
Kenny
Comment author was deleted
Hey David,
If both forms are withing the same form tag with runat server atttribute it should work (not sure if it's an option for you to move the form tag more on top).
Of course in Contour 3.0 (that will be out very soon) you'll be able to have multiple forms without a runat server form tag, each form will basicly live inside it's own form tag
Hey Kenny,
Thanks for getting back to me and showing me the error of my ways. It looks like you CAN have two Contour forms sitting happily together on a page. In my case there seems to be a css conflict with one particular form. All other forms work fine (together and alone) but this one doesn't even work alone on the page. Remove the css and it works just fine. So now to find that bug and squash it!
Cheers,
David
Thanks Tim - looking forward to moving away from web forms once and for all!
Hey David,
My experience of running the non REST contour forms is a bit limited, but if you decide to go the CultivRest route you should be able to get it up and running pretty quickly I can give you some starter code that should help too.
I have also asked Ally to check this out as she has just been doing loads of mucking about with contour.
L
is working on a reply...