Forum
Multiple Forms - responsesshow up in same Form in backend
Hi,
I have 2 forms sign-up.html
<perch:form id="sign-up" method="post" app="perch_forms">
<perch:content id="intro" type="textarea" label="Intro" textile="true" editor="markitup" size="m" />
<div class="personal-info">
<div class="name">
<perch:label for="name">Name</perch:label>
<perch:input type="text" id="name" required="true" label="Name" />
<perch:error for="name" type="required">Please add your name</perch:error>
</div>
<div class="email">
<perch:label for="email">Email</perch:label>
<perch:input type="email" id="email" required="true" label="Email" placeholder="you@company.com" />
<perch:error for="email" type="required">Please add your email address</perch:error>
<perch:error for="email" type="format">Please check your email address</perch:error>
</div>
<div class="postcode">
<perch:label for="postcode">Postcode</perch:label>
<perch:input type="text" id="postcode" required="false" label="Postcode" />
</div>
</div>
<div class="stock-quantities">
<p>What species of stock do you have? Please enter quantities...</p>
<div class="stock">
<perch:label for="dairy">Dairy</perch:label>
<perch:input type="text" id="dairy" required="false" label="Dairy" />
</div>
<div class="stock">
<perch:label for="beef">Beef</perch:label>
<perch:input type="text" id="beef" required="false" label="Beef" />
</div>
<div class="stock">
<perch:label for="sheep">Sheep</perch:label>
<perch:input type="text" id="sheep" required="false" label="Sheep" />
</div>
<div class="stock">
<perch:label for="pigs">Pigs</perch:label>
<perch:input type="text" id="pigs" required="false" label="Pigs" />
</div>
<div class="stock">
<perch:label for="poultry">Poultry</perch:label>
<perch:input type="text" id="poultry" required="false" label="Poultry" />
</div>
<div class="stock">
<perch:label for="gamebirds">Gamebirds</perch:label>
<perch:input type="text" id="gamebirds" required="false" label="Gamebirds" />
</div>
<div class="stock">
<perch:label for="other">Other</perch:label>
<perch:input type="text" id="other" required="false" label="Other" />
</div>
</div>
<div>
<perch:input type="submit" id="submit" value="Send" />
</div>
<perch:success>
<perch:content id="success" type="textarea" label="Thank you message" textile="true" editor="markitup" />
</perch:success>
</perch:form>
and submit-course.html
<perch:form id="submit-course" method="post" app="perch_forms">
<perch:content id="intro" type="textarea" label="Intro" textile="true" editor="markitup" size="m" />
<div class="personal-info">
<div class="name">
<perch:label for="name">Name</perch:label>
<perch:input type="text" id="name" required="true" label="Name" />
<perch:error for="name" type="required">Please add your name</perch:error>
</div>
<div class="email">
<perch:label for="email">Email</perch:label>
<perch:input type="email" id="email" required="true" label="Email" placeholder="you@company.com" />
<perch:error for="email" type="required">Please add your email address</perch:error>
<perch:error for="email" type="format">Please check your email address</perch:error>
</div>
<div class="postcode">
<perch:label for="phone">Phone</perch:label>
<perch:input type="text" id="phone" required="false" label="Phone" />
</div>
</div>
<div class="stock-quantities">
<p>Please submit information about your course... </p>
<div class="stock">
<perch:label for="course-title">Course title</perch:label>
<perch:input type="text" id="course-title" required="false" label="Course Title" />
</div>
<div class="stock">
<perch:label for="species">Species</perch:label>
<perch:input type="select" id="species" required="true" options="
<perch:repeater id="species-options-repeater" label="Species Options for form">
<perch:content id="species-options" type="text" label="Species" />,
</perch:repeater>
" />
<perch:error for="species" type="required">Please select a species for your course</perch:error>
</div>
<div class="stock">
<perch:label for="cost">Cost</perch:label>
<perch:input type="text" id="cost" required="false" label="Cost" />
</div>
<div class="stock">
<perch:label for="time-date">Time / Date</perch:label>
<input type="text" id="time-date" required="true" value="" id="datetimepicker"/>
<perch:error for="time-date" type="required">Please select a date and time for your course</perch:error>
</div>
<div class="stock">
<perch:label for="location">Location</perch:label>
<perch:input type="text" id="location" required="true" label="Location" />
<perch:error for="location" type="required">Please type in a location (Venue, Town, County) for your course</perch:error>
</div>
<div class="stock">
<perch:label for="postcode">Postcode</perch:label>
<perch:input type="text" id="postcode" required="true" label="Postcode" />
<perch:error for="postcode" type="required">Please give a postcode for your course</perch:error>
</div>
<div class="stock information">
<perch:label for="information">More Information</perch:label>
<perch:input type="textarea" id="information" required="false" label="Information" />
</div>
</div>
<div>
<perch:input type="submit" id="submit" value="Send" />
</div>
<perch:success>
<perch:content id="success" type="textarea" label="Thank you message" textile="true" editor="markitup" />
</perch:success>
</perch:form>
However only 1 is available in the Forms app in the back end of Perch - that's the 'Sign Up' form. Both forms, when submitted store their information in this same Sign up form.
Thanks in advance,
Adam
I have re-submitted the Perch 'Page' in the back end, which contains this form and it is now updating to 2 Forms.
Did they previously use the same ID?
Yes they did.
I am having this same issue. I have double checked that the ID's are different and am still getting responses in a single Form in the Perch Admin.
<?php perch_content('Contact-Client Form'); ?>
<?php perch_content('Contact-Employment Form'); ?>
Thank you.