So you created 2 sub pages under the parent page of contact form with these forms? They aren't going to show up on the parent page by default, as they're different pages. Unless I'm not understanding what you did.
Anyway, I think you'll have to write custom forms manually you achieve this. A page can't be 2 different page types, and I'm not sure something like <% control Children %> would work and grabbing the form info from a parent page.
The best way to do this is in your Page.php add the function to control your Subscription and your contact form, so you could put in your Page.ss
<% control Children %>
<% end_control %>
just $Subscription and $ContactForm
to learn more about forms [url=http://wiki.balbus.tk/doku.php?id=silverstripe:contact_page_1] read this amazing tutorial [/url]
and you can [url=http://doc.silverstripe.com/doku.php?id=form] learn about forms in silverstripe here too[/url]
Hi LeeUmm, maybe you can help me. My issue kind of relates to this thread:
I have a contact (userdefined form) and a newsletter signup ($SignUpForm) on the same page. Both forms appear perfectly however the validation is messy. When you hit submit on the contact form, an error message appears (IE) 'object does not support this property or method' and the form validation fields turn from strings to 'EditableEmailField3 is required'. If i take away the SignUp form, it's fine. They are obviously conflicting.