Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all 49500 articles
Browse latest View live

Change font family in a Contact 7 form

$
0
0

Replies: 1

How to change the font family in a Contact 7 form?


German Signs in Domain doesn’t work (ö ä ü ß)

email confirmation field

$
0
0

Replies: 0

Hi
looking at the instructions to add a email confirmation field,
Where exactly do I need to add the code that verifies whether the two fields have identical values:

add_filter( 'wpcf7_validate_email*', 'custom_email_confirmation_validation_filter', 20, 2 );

function custom_email_confirmation_validation_filter( $result, $tag ) {
    $tag = new WPCF7_FormTag( $tag );

    if ( 'your-email-confirm' == $tag->name ) {
        $your_email = isset( $_POST['your-email'] ) ? trim( $_POST['your-email'] ) : '';
        $your_email_confirm = isset( $_POST['your-email-confirm'] ) ? trim( $_POST['your-email-confirm'] ) : '';

        if ( $your_email != $your_email_confirm ) {
            $result->invalidate( $tag, "Are you sure this is the correct address?" );
        }
    }

    return $result;
}

Thank you

Autofocus attribute

$
0
0

Replies: 0

Hello,

I was wondering if we could have an HTML attribute autofocus added to the shortcodes used in Contact Form 7? Because autofocus is part of the good UX checklist.

Example:
<input type="text" name="fname" autofocus>

If it’s already possible, please let me know how! Maybe also add it to the Knowledge Base on the website? 😄

Kind regards,

Mic

  • This topic was modified 6 hours, 49 minutes ago by  xmic.

WPCF7_Shortcode Warning

$
0
0

Replies: 0

Althoug I am not Aware of using “wpcf7_add_shortcode”, I am getting a notive in my debug log saying to replace it with wpcf7_add_form_tag.

Any ideas, were this message cold come from?

Cheers from Germany

Hansjörg

Contact Form – Multiple Options, but limited

$
0
0

Replies: 3

Hey Guys,

Does anyone know how to limit contact form checkboxes? I know how to enable multiple selections, but I can’t seem to limit the number of selections.

Example – Choose 2 of the food from the list below. (MAXIMUM 2 CHOICES)
-Rice -Noodle -Fruit -Seafood -Vegetables

Does anyone know how to I get the form to validate that user has no more than 2 choices selected?

  • This topic was modified 5 hours, 44 minutes ago by  leoriclim.

Textfield not clickable

$
0
0

Replies: 0

Hi

On my form I have fields set like this:
[text* text-1 id:address class:inp placeholder “Osoite”]<label for=”address”><span>Osoite</span></label>

For some reason the field does not get focus when user clicks over the label. Field gets focus only if user clicks the field’s area where there is no label over it.

Mail not received contact form 7

$
0
0

Replies: 0

When I passed the simple text(custom variable $message=”hello”) in wp_mail function its working fine but when I passed the $body = $components[‘body’] in wp_mail function its display message sent successfully but mail isn’t received. I think the issue in COntact us plugin body tag. Can you check.

WordPress version: 4.6.1
COntact Form 7 version: Version 4.6
Site url: http://www.igreengadget.com/


autofocus of the first field

$
0
0

Replies: 0

Is there an option to make the first field of the form autofocused?

For now, i found this piece of code

<script type="text/javascript">
jQuery(document).ready(function($) { jQuery('.wpcf7-text:first').focus(); });
</script>

I tried to put it to the header, but it doesn’t work.

Is there a solution to make the first field autofocused?

Doesn’t attach ZIP files

$
0
0

Replies: 0

Created a form with file attachment. Works well if I upload png files – it uploads, and sends the email with the attached file.

If I attach a zip file, I can see it uploads the file in the temp folder, but the email is not sent. (no success or error messages)

  • This topic was modified 3 hours, 21 minutes ago by  PixelAlb.

3 column responsive layout

$
0
0

Replies: 0

Would anyone have the code to create a responsive 3 column contact form 7 layout on a page? My 3 columns are 1. Name 2. Phone Number 3. Submit.
Thanks in advance.

get submitted form on submit

$
0
0

Replies: 1

So I have a form on a page, the same form is also called in a modal window. So I want to preform an action on_sent_ok. So in the Additional Settings tab I have on_sent_ok: ‘submittedFormAction();’ and in my scripts file I have:

function submittedFormAction() {
    // do something
}

But I only want it to happen to the form that was submitted, not the other form. So if I submit the one on the page, I don’t want that action to happen to the one in the modal. I feel like there has to be a way to send something unique from the form that was submitted, but I just can’t find anything.

Thanks!

[Resolved] Updated to 7 – Forms aren’t working

$
0
0

Replies: 0

We updated to Contact Form 7 yesterday and now all our contact forms are not working. When a form is filled out then submitted we get the Sender’s message failed to send message. We are using WordPress 4.6.1. Any suggestions as to what to do or where to find answers would be greatly appreciated.

  • This topic was modified 23 hours, 16 minutes ago by  marloncfs.

Not receiving content of form

$
0
0

Replies: 1

Hello,

I recently built a website portfolio at http://simon-badina.com and on the bottom of the website there is a contact 7 form in case somebody wants to leave a message. However I still have an issue with the contact form, I tried to do some research but I can’t find any answers. Here is the issue :

When someone goes on the contact form and fill it with a message and his e-mail and so on, the mail that I do receive is empty. I conducted several tests with various email adresses and it just won’t show any content.
The mail that I receive is this :

From : wordpress@simon-badina.com
To : My Email

From: Simon BADINA <[your e-mail]>
Subject: [your-subject]

Message Body :
[your-message]


This e-mail was sent from a contact form on Simon Badina Portfolio (http://simon-badina.com)

Here are the settings in my Edit Contact form in wordpress :

To My Email

From [your-name] <wordpress@simon-badina.com>

Subject Simon Badina Portfolio “[your-subject]”

Additional Headers
Reply-To: [your-email]

Message Body
From: [your-name] <[your e-mail]>
Subject: [your-subject]

Message Body :
[your-message]


This e-mail was sent from a contact form on Simon Badina Portfolio (http://simon-badina.com)

Can anyone help me ?

No Error Message for Files that are Too Large

$
0
0

Replies: 0

I have a file attachment field on my form. I set a file size of 8mb. To test the form and ensure that large files will not be accepted, I am using a 10mb file. When the file is too large, the form spins while the file is uploading and then returns to itself with all of the fields cleared out. There is no error message. When I use an unaccepted file extension the form shows the correct error. When I use a correct file size with an accepted file extension the form submits as expected.


Mail(2) not sending auto-response

Attaching pdf dynamically as per user input

$
0
0

Replies: 1

Hi,

I am trying to create and attach pdf file dynamically with mail. I had gone through some of the suggestions in this forum. but, it does not works for me. The code i used is
add_action(‘wpcf7_before_send_mail’,’send_pdf’);
function send_pdf( $cf7 ) {
$id = $cf7->id();
if ($id==1494)
{
$submission = WPCF7_Submission::get_instance();
if ( $submission ) {
$posted_data = $submission->get_posted_data();
$kid = $posted_data[‘kid-name’];
$name = $posted_data[‘father’];
$html = ”; //some HTML content
require(get_template_directory().’/mpdf-master/mpdf.php’);
$mpdf=new mPDF(‘c’,’A4′,”,” , 0 , 0 , 0 , 0 , 0 , 0);
$mpdf->WriteHTML($html);
$mpdf->Output(get_template_directory().’/’.$kid.’.pdf’, ‘F’ );
$submission->add_uploaded_file(‘pdf’, get_template_directory().’/’.$kid.’.pdf’);
}
}
}

I need to use the values from user input in the pdf. How to resolve this?
Please Help

Thanks in Advance

Using CAPTCHA

$
0
0

Replies: 0

I am using contact form 7 version 4.6

Can I switch to the old style CAPTCHA with alphabet and number inputs instead of the reCAPTCHA with images picking?

Thanks

Contact Form doesn’t show unchecked acceptance message

$
0
0

Replies: 1

Hi,

Contact Form 7 doesn’t show unchecked acceptation message before sending.
It shows error message when required field is empty.

How can I solve that?

Thank in advance

Jaume,

Installation error

$
0
0

Replies: 0

Hi, I expérience problems installation ‘contact form 7’. I get this message:

Installing Plugin: Contact Form 7
Unpacking the package…

Installing the plugin…

Destination folder already exists. /var/www/vhosts/vincentdekkers.com/httpdocs/wp-content/plugins/contact-form-7/

Plugin install failed.

A few days ago I Switched to an other WordPress theme from ‘Trend’ to ‘Twenty Seventeen’ and back to ‘Trend’. Now I experience problems with the installation of this plugin.

Many thanks!

Viewing all 49500 articles
Browse latest View live