Custom Contact Forms
custom forms don't remember fields (1 post)

  1. roger_rutishauser
    Posted 3 years ago #


    I've created my own form. When not all "must" fields are filled out, it tells me what fields are missing. So far so good. But there's no link pointing back to the form.

    In the same wordpress page, I have a CCF form with the default fields from the backend. In this case, the back-link is there.

    I was able to make the back-link appear on my custom form, but then it disappeared on the default contact form!

    What I did was
    file: custom-contact-forms-front.php
    function: contentFilter($content)
    $err_link = (!empty($this->error_return)) ? '<p>error_return.'" title="'.__('Go Back', 'custom-contact-forms').'">< ' . __('Go Back to Form.', 'custom-contact-forms') . '</p>' : '';
    --> changing ...(!empty(... TO ...(empty(...

    What I would like is to have the back-link on both forms - custom AND default.

    If this is not possible, I only create custom forms. No problem. BUT when using custom forms, the functionality of remembering the already entered fields does not work!

    I would be very glad If anybody could help me.

    Here's the code for the custom form (maybe there's something wrong as to why the fields are not remembered when hitting back-link?):

    <form class="akt_form" action="" method="post"><input type="hidden" name="ccf_customhtml" value="1" /><input type="hidden" name="success_message" value="Thank you for filling out our form!" /><input type="hidden" name="thank_you_page" value="../saxo/?sent=yes" /><input type="hidden" name="destination_email" value="roger.rutishauser@fuw.ch" /><input type="hidden" name="required_fields" value="akt_name, akt_vorname, akt_email, akt_tel, akt_einverstanden" />
    <td><select class="akt_sprache" name="akt_sprache"> <option selected="selected" value="Sprache: D">D</option> <option value="Sprache: F">F</option> <option value="Sprache: I">I</option> <option value="Sprache: E">E</option></select></td>
    <td><select class="akt_anrede" name="akt_anrede"> <option selected="selected" value="Anrede: Frau">Frau</option> <option value="Anrede: Herr">Herr</option></select></td>
    <td><label>* Name</label></td>
    <td><input class="akt_name " type="text" name="akt_name" /></td>
    <td><label>* Vorname</label></td>
    <td><input class="akt_vorname " type="text" name="akt_vorname" /></td>
    <td><input class="akt_strasse " type="text" name="akt_strasse" /></td>
    <td><input class="akt_plz " type="text" name="akt_plz" /></td>
    <td><input class="akt_ort " type="text" name="akt_ort" /></td>
    <td><label>* E-Mail</label></td>
    <td><input class="akt_email " type="text" name="akt_email" value="@" /></td>
    <td><label>* Telefon</label></td>
    <td><input class="akt_tel " type="text" name="akt_tel" /></td>
    <td colspan="2"><input class="akt_einverstanden" type="checkbox" name="akt_einverstanden[0]" value="ja" /> Ich erkläre mich bereit, dass Saxo Bank mich kontaktieren kann.</td>
    <td colspan="2"><input class="submit" type="submit" name="customcontactforms_submit" value="SENDEN" /></td>


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Contact Forms
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by roger_rutishauser
  • This topic is not resolved
  • WordPress version: 3.3.2