Forum

Thread tagged as: Question, MailChimp

Mailchimp Thank you!

Can you get the ( perch:success -Thank you) to show on a new page to the 'form' ? And if so how?

Thanks.

David Roberts

David Roberts 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your template and diagnostics report, please? It should work!

It does reload the page and give you a thank you message but the form is part of the footer and so a it looks lost and b I would prefer to have it show with more text and on a new page. Diagnostics report:

Perch Runway: 2.8.29, PHP: 5.5.31, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (4.6), perch_kraken (1.0), collection_1 (2.8.29), perch_backup (1.2), perch_mailchimp (3.0) App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_mailchimp', ); PERCH_LOGINPATH: /perch PERCH_PATH: /home4/digitale/public_html/perch PERCH_CORE: /home4/digitale/public_html/perch/core PERCH_RESFILEPATH: /home4/digitale/public_html/perch/resources Image manipulation: GD Imagick PHP limits: Max upload 128M, Max POST 128M, Memory: 128M, Total max file upload: 128M F1: 2edba60ed1f613d6dd804feb202456a2 Resource folder writeable: Yes SCRIPT_NAME: /perch/core/settings/diagnostics/index.php REQUEST_URI: /perch/core/settings/diagnostics/ DOCUMENT_ROOT: /home4/digitale/public_html HTTP_HOST: digitaleducation.education

Template

 <div class="newsletter">
<perch:form id="subscribe" app="perch_mailchimp" double-optin="true" send-welcome="true" class="contact-from">

    <perch:success>
        <p>Thank you!</p>
    </perch:success>

    <h1 class="title-heading">Become better informed  with the Digital Education News</h1>
    <p class="newsletter-text">Every two weeks get the latest information on technology, design and theory
        <br/>Sign up below. You can unsubscribe anytime. </p>



    <div class="row">
        <div class="col">
            <perch:input id="firstname" required="true" type="text" mailer="FNAME" placeholder="First Name" />
            <perch:error type="required" for="firstname">Required</perch:error>
        </div>
        <div class="col">
            <perch:input id="lastname" required="true" type="text" mailer="LNAME" placeholder="Last Name" />
            <perch:error type="required" for="lastname">Required</perch:error>
        </div>


        <div class="col">
            <perch:input id="email" required="true" type="email" mailer="email" placeholder="Email" />
            <perch:error type="required" for="email">Required</perch:error>
        </div>
        <div class="col">
            <perch:input type="submit" value="subscribe" id="btnsubmit" />
            <perch:input type="hidden" value="1" id="confirm" mailer="confirm_subscribe" />
        </div>
    </div>

</perch:form>
 </div>
Drew McLellan

Drew McLellan 2638 points
Perch Support

To show the result on a new page you'll need to post the form to that page by setting the form action attribute. Keep in mind that any validation the server does will be displayed on that new page also.

Is that to the URL of the page that you want it to point to?

action Set action if you want to post to an external script (your form is not being handled by Perch)

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, the action attribute is the URL of the page you want to submit the form to.