Support » Plugin: Custom Contact Forms » [Plugin: Custom Contact Forms] custom forms don't remember fields

  • Hi,

    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)
    line:
    $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.
    Thanksè

    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" />
    <table>
    <tbody>
    <tr>
    <td><label>Sprache</label></td>
    <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>
    </tr>
    <tr>
    <td><label>Anrede</label></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>
    </tr>
    <tr>
    <td><label>* Name</label></td>
    <td><input class="akt_name " type="text" name="akt_name" /></td>
    </tr>
    <tr>
    <td><label>* Vorname</label></td>
    <td><input class="akt_vorname " type="text" name="akt_vorname" /></td>
    </tr>
    <tr>
    <td><label>Strasse</label></td>
    <td><input class="akt_strasse " type="text" name="akt_strasse" /></td>
    </tr>
    <tr>
    <td><label>PLZ</label></td>
    <td><input class="akt_plz " type="text" name="akt_plz" /></td>
    </tr>
    <tr>
    <td><label>Ort</label></td>
    <td><input class="akt_ort " type="text" name="akt_ort" /></td>
    </tr>
    <tr>
    <td><label>* E-Mail</label></td>
    <td><input class="akt_email " type="text" name="akt_email" value="@" /></td>
    </tr>
    <tr>
    <td><label>* Telefon</label></td>
    <td><input class="akt_tel " type="text" name="akt_tel" /></td>
    </tr>
    <tr>
    <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>
    </tr>
    <tr>
    <td colspan="2"><input class="submit" type="submit" name="customcontactforms_submit" value="SENDEN" /></td>
    </tr>
    </tbody>
    </table>
    </form>

    http://wordpress.org/extend/plugins/custom-contact-forms/

  • The topic ‘[Plugin: Custom Contact Forms] custom forms don't remember fields’ is closed to new replies.