Problems with confirmation page on custom form

Hiya,


I'm having a problem with the confirmation page on a custom form. I'm trying to create a sample letter, so a user will fill in their address, the recipient's address and some info to go in the letter, and the letter is then put together using these details. I wanted to create a confirmation page, so that they could see what it would look like before they print it out and email a copy to themselves. I created bodycopies for the page content, the confirmation page and thank you pages. I wanted to get the confirmation and thank you pages sorted first, so I just used the %form_contents% body copy for the form on the page content page, and customised the confirmation and thank you pages to show the letter, which is put together using the keywords for the responses posted.



This all worked fine - until I customised the page contents page to make the form look pretty, and took off the %form_contents% keyword. Now when you proceed to the confirmation page, it just shows the customised form again. If I stick the %form_contents% keyword back into the page contents page, underneath my customised form, the correct layout for the confirmation page does appear on that page, but underneath the customised form.



How can I get a nice looking customised form on the page content page but still get my confirmation page to show the right thing?? :blink:



(I hope I've explained that clearly enough!)



Many thanks,

Elaine

Can you post what's in each of your bodycopies? The Form layout is very black and white. You either use %form_contents%, or you basically have to customise everything.

Maybe have a look at the MySource Matrix Custom Form manual and see if that can help you out.


Information on how the confirmation page works was recently added to this manual.


Hiya,

This is my customised form:

PAGE CONTENTS

<div id="customForm">
<div id="formErrors">%form_errors%</div>
<fieldset>
<legend>%section_title_193541%</legend>

<div class="question clearfix">
<div class="fieldDesc">%question_label_193541_q1% <span class="req">*</span></div>
<div class="inputField">%question_field_193541_q1%</div>
</div>

<div class="question clearfix">
<div class="fieldDesc">%question_label_193541_q2% <span class="req">*</span></div>
<div class="inputField">%question_field_193541_q2%</div>
</div>

<div class="question clearfix">
<div class="fieldDesc">&nbsp;</div>
<div class="inputField">%question_field_193541_q3%</div>
</div>

<div class="question clearfix">
<div class="fieldDesc">&nbsp;</div>
<div class="inputField">%question_field_193541_q4%</div>
</div>

<div class="question clearfix">
<div class="fieldDesc">%question_label_193541_q5%</div>
<div class="inputField">%question_field_193541_q5%</div>
</div>

<div class="question clearfix">
<div class="fieldDesc">%question_label_193541_q6%</div>
<div class="inputField">%question_field_193541_q6%</div>
<p style="margin-bottom: 0;">%question_note_193541_q6%</p>
</div>

<div class="question clearfix last">
<div class="fieldDesc">%question_label_193541_q7%</div>
<div class="inputField">%question_field_193541_q7%</div>
<p style="margin-bottom: 0;">%question_note_193541_q7%</p>
</div>

</fieldset>

<fieldset>
<legend>%section_title_193542%</legend>

<div class="question clearfix">
<div class="fieldDesc">%question_label_193542_q1% <span class="req">*</span></div>
<div class="inputField">%question_field_193542_q1%</div>
</div>

<div class="question clearfix">
<div class="fieldDesc">%question_label_193542_q2% <span class="req">*</span></div>
<div class="inputField">%question_field_193542_q2%</div>
</div>

<div class="question clearfix">
<div class="fieldDesc">&nbsp;</div>
<div class="inputField">%question_field_193542_q3%</div>
</div>

<div class="question clearfix">
<div class="fieldDesc">&nbsp;</div>
<div class="inputField">%question_field_193542_q4%</div>
</div>

<div class="question clearfix last">
<div class="fieldDesc">%question_label_193542_q5%</div>
<div class="inputField">%question_field_193542_q5%</div>
</div>

</fieldset>

<fieldset>
<legend>%section_title_193543%</legend>
<div class="question clearfix">
<div class="fieldDesc">%question_label_193543_q1% <span class="req">*</span></div>
<div class="inputField">%question_field_193543_q1%</div>
</div>

<div class="question clearfix last">
<div class="fieldDescWide">%question_label_193543_q2%</div>
<p>%question_note_193543_q2%</p>
<div class="inputfieldWide">%question_field_193543_q2%</div>

</div>
</fieldset>

<div class="buttons">%submit_button%</div>
</div>

CONFIRMATION PAGE - this sets out the letter using the responses - but it only appears if the %form_contents% keyword is used on the page contents - otherwise you just see the form again!

<p><strong>This is what your letter will look like. If you're happy with the letter, click the submit button. If not, click the previous button and make any changes you need to.</strong></p>
<div style="border: 1px dashed #ccc; padding: 15px;">
<div style="float:right; margin-bottom: 20px;">
<!-- Your address -->
<p style="margin-bottom: 0;">%response_193541_q2%</p>
<p style="margin-bottom: 0;">%response_193541_q3%</p>
<p style="margin-bottom: 0;">%response_193541_q4%</p>
<p>%response_193541_q5%</p>
<p>%form_submission_time_readabledate%</p>
</div>
<hr style="clear: right; visibility:hidden;" />
<!-- Landlord's address -->
<p style="margin-bottom: 0;">%response_193542_q1%</p>
<p style="margin-bottom: 0;">%response_193542_q2%</p>
<p style="margin-bottom: 0;">%response_193542_q3%</p>
<p style="margin-bottom: 0;">%response_193542_q4%</p>
<p>%response_193542_q5%</p>
<br />
<p>Dear %response_193542_q1%, </p>
<p><strong>Re: Deposit for %response_193541_q2%</strong></p>
<p>I am writing concerning the deposit I paid for %response_193541_q2%, as I am not happy that my deposit of £%response_193543_q1% has not been returned. </p>
<p>%response_193543_q2%</p>
<p>Therefore I'd be most grateful if you could return my deposit as soon as possible.</p>
<p>If this is not returned within 14 days, I will be forced to take further action.</p>
<p>I look forward to hearing from you soon.</p>
<p>Yours sincerely,</p>
<p>&nbsp;</p>
<p>%response_193541_q1%<br />
%response_193541_q6%</p>
</div>
<div class="buttons" style="float: left;">%previous_page_button%</div>

Also slightly bizarrely, the submit button appears automatically on the page, with no need to include it as a keyword.

I found the most recent manual (I was looking at version a, which doesn't include confirmation pages) but am none the wiser - thanks for the tip off though Deborah!

If anyone has any idea what I'm doing wrong here I'd be really grateful, as it's doing my head in!! :o

Elaine

Elaine


Unfortunately the validation screen was developed when the ability to customize the form didn't exist. When the form customisation was put in it looks like all logic was not taken into account. I am sure that there are some of us who have been finding workarounds for stuff like this can come up with something to help.



Dan…Nic…

I tried doing this and got the same problem.


I reported a bug for you.

[quote]Elaine


Unfortunately the validation screen was developed when the ability to customize the form didn't exist. When the form customisation was put in it looks like all logic was not taken into account. I am sure that there are some of us who have been finding workarounds for stuff like this can come up with something to help.



Dan…Nic…[/quote]



Thanks for the mention Shane, but I'm trying to write a book here! :slight_smile:

[quote]Elaine


Unfortunately the validation screen was developed when the ability to customize the form didn't exist. When the form customisation was put in it looks like all logic was not taken into account. I am sure that there are some of us who have been finding workarounds for stuff like this can come up with something to help.



Dan…Nic…[/quote]



Ah well, at least now I know it's not me missing something and can work round it some other way. :frowning: Thanx for all the help!



Elaine

Cracked it!! If you use the multiple page option, you can customise each individual page as much as you like and then put whatever you want on the confirmation page. It's meant I've had to break up my form unnecessarily, but it's worth it to get it to work!


Elaine B)

Just to let you know that the development team have confirmed the bug and are trying to fix it.


But at least you got the form working in the mean time :smiley: