Hi,
Nice, simple plugin.
One question: is it possible to hardcode a subject line via hook or a function? I need a specific subject line for the sent emails, and I don’t want the form user to be able to add their own subject line.
Thanks
]]>does this plugin support GTM tracking by dom like cf7?
or is there a better way to work with GTM, thx.
]]>It would have been helpful to have all the elements prearranged in rational order. However, currently, in settings, the 1+1 = that should come JUST before “submit” is in front of the message content, which doesn’t make any sense. And the up-down arrows will not move it. How can we move it, please? Thank you.
]]>Thanks to Jeff Starr for a handy and functional plugin.
With debug enabled, I noticed errors like:
PHP Warning: Invalid argument supplied for foreach() in /var/www/domain.com/htdocs/wp-content/plugins/contact-form-x/inc/core-form.php on line 45
There might be a bug here, because on line 41 $fields variable might be set to null. But on line 45, always, even if $fields is null, the plugin tries to call foreach($fields as $id => $field)
.
I suggest replacing:
$fields = isset($options_form['display-fields']) ? $options_form['display-fields'] : null;
on the:
$fields = isset($options_form['display-fields']) ? $options_form['display-fields'] : array();
Then the foreach() will always get an array.
]]>Hi Jeff,
I’m here breaking my head over this issue. I have only very basic PHP knowledge so maybe you know better where to look.
Environment:
I’ve found out that the mail is sent only if I comment the line 108 in core-email.php or if change such header to anything else. For example, Whatever: whatever
.
If the line stays as it is, I get an error: https://i.imgur.com/YUCLYvD.png
Any clue?
]]>Hi, the site I’m working on requires Sect 508 compliance, and X Form is flagged for not having a standard submit button. The code shows that the submit button uses div element which is not interactive with the keyboard. Form submission function should use <button> or <input> element which have built-in keyboard interaction. I hope this can be improved in the next update. Unfortunately I may have to find alternative solution after spending the time to configure and customize Form X.
Thank you.
]]>It would be nice to have an option to hide the reCAPTHA badge, Google says it is fine as long as it is displayed in the terms and conditions.
I’d like to hide the reCAPTCHA badge. What is allowed?
After hitting submit on the contact page, the position of the user is at the very bottom of the page, which puts them out of view of the sent success message. Is there a way to have it go back up to or in focus of that message?
]]>Is it possible to create, say 4 fixed custom subject lines that are in a drop down format that are the only ones the user can choose from?
]]>So if I only want to load the css and assets on my contact page, do I simply need to put the /contact/ local destination in the setting box, or the entire url, https://www.sitename.com/contact/ to have that accomplished?
]]>Hi! Is there an easy way to include URL or title of the page the form was submitted from into the email sent?
]]>Cloudflare’s new Turnstile looks really promising as a replacement for Google reCAPTCHA. Kindly consider Cloudflare Turnstile for a future update.
]]>Hi Jeff,
Is there a way to automatically send a carbon copy to the submitted email address without requiring the carbon copy checkbox?
Thanks
Hi, with the objective to change I have added the following CSS code :
.cfx-button.cfx-submit {
margin: 0px;
float: left;
letter-spacing: 0px;
background-color: #364256;
}
This is not working as I would like ?? I assume that I doing something wrong, any suggestions ?
Thanks
]]>Hi,
I would love to see the ability to make a couple of forms, each for a different purpose that gets sent to a different support email. For example, one form goes to a support email and the other form gets sent to a business email for business inquiries.
Also, I did not see an option to set up automatic responses; I would love to see that added!
Thanks!
]]>I’d like to know if it’s possible to enable SMTP Restrictions in WHM and still allow Contact Form X to send emails. If so, does anything need to be configured further in the plugin or WordPress?
]]>I have enabled gmail smtp by manual code so that email from the contact form goes to inbox not spam. Also checked the php mail function in contact form X advanced setting. I have replaced the from email by a gmail, but contactform x still sending emails by my hosting. Is there any way to replace this by gmail? And I do not want to use a plugin.
I have added this code in my wp config-
// SMTP email settings
define( 'SMTP_USER', '[email protected]' );
define( 'SMTP_PASS', 'yourpassword' );
define( 'SMTP_HOST', 'smtp.gmail.com' );
define( 'SMTP_FROM', '[email protected]' );
define( 'SMTP_NAME', 'Demo' );
define( 'SMTP_PORT', '587' );
define( 'SMTP_SECURE', 'tls' );
define( 'SMTP_AUTH', true );
Then in my function php-
// Send email via SMTP
add_action( 'phpmailer_init', 'my_phpmailer_example' );
function my_phpmailer_example( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = SMTP_HOST;
$phpmailer->SMTPAuth = SMTP_AUTH;
$phpmailer->Port = SMTP_PORT;
$phpmailer->Username = SMTP_USER;
$phpmailer->Password = SMTP_PASS;
$phpmailer->SMTPSecure = SMTP_SECURE;
$phpmailer->From = SMTP_FROM;
$phpmailer->FromName = SMTP_NAME;
}
]]>
How to load Recaptcha only in contact page? The recapcha is slowing my site horribly. Before enabling the plugin my pagespeed was 97 on mobile, now it is barely 70. Can you share any php snippet code that will block the captcha on every page excluding the contact page?
]]>Is this plugin compatible with Oxygen Builder?
]]>Hi!
I’m looking for a lightweight, performance contact form plugin to replace CF7.
Is there any way to make this work with Zapier?
I’m up for a little customization via code of needed, but want to grasp how much effort would it require and if maybe someone could point me to the right direction.
Thanks,
Simon
Hi again ??
I am checking to how emails are saved in the database. I see you save them as posts. I have two questions.
1. How do you suggest to view/list them, other than the last few in a widget? What If would want a list of all of them, including metadata?
I did fiddle with your cpt registering function to make them available as posts in the left admin menu as “Emails”, but that wont show the meta post data.
2. please add a “cfx_” prefix to the post metadata key elements, making them more recognizable, less generic and easier to clean.
Thanks again. No more issues from me on this plugin ??
]]>Hey Jeff,
sorry to spam you with ‘issues’ ?? My site is in two languages (with the help of the WPML plugin), and I am now trying to translate the labels, button text and messages.
It is nice we can customize the labels in the settings, but if I understand correctly, this overrides your translatable strings in your code. So po/mo files can not be used for labels chosen in the settings other than the default ones, correct?
For instance, you have this in your code for the submit button:
__(‘Send Message’, ‘contact-form-x’);
I can create a translation for this in the po file, as long as it stays this default value. But I changed it. I am wondering if this could be dynamic in your code, like:
__($my chosen_button_text, ‘contact-form-x’);
Then I could translate any label text in the po file, right?
Thanks again ??
]]>Hey Jeff,
after much frustration with CF7 and its bloat, heaviness and js/json errors, I decided to give yours a try.
I stumbled on the following issues / feature requests:
– Is it true that the form data is not included in the sent email? I would have expected at least the name in the body of the email. Maybe a email body template would be an idea, in which all data elements are included, and which people can override its layout if desired?
– The recaptcha function would not allow sending the email, although I also use a much-used recaptcha plugin (advanced-nocaptcha-recaptcha) it may have been conflicting with. That plugin has some nice features you could maybe also integrate. Like ip whitelist surpassing recaptcha checks and a change recaptcha sensitivity setting.
– To overcome the recaptcha conflict, I am gonna try to hack your plugin to include the 2 small code injections from the advanced-nocaptcha-recaptcha plugin (within validation and just before submitting), maybe you could implement some option to this via a shortcode or filters, so integration without hacking would become possible?
– Maybe it is an idea for extra security against spambots to implement a honeypot field?
Thanks for the plugin, I am really hoping to say goodbey to CF7.
Cheers.
]]>Is there a way to translate the text in the ‘carbon copy’ email that is send?
“Message sent from your contact form.”
“This is a carbon copy of the message you sent via”
I could not find these in the Customize tab.
Thanks.
]]>Hello and thank you for this great plugin ??
I think I found a bug in the plugin. Let me explain my findings.
When you select the number of recipients to 2 for example. Then you go to delete one of them, it does not work. That means the link Delete under the word Recipient does not function as expected while the number of recipients is set to 2. It only works when you reduce the number of recipients from 2 to 1 using the arrows in the field.
Let me know if it makes sense my findings.
Thank you
]]>Idea:
Right now the dashboard widget only shows when the user can “manage_options”. Usually that is admins only. There are situations where you want editors to be able to see the dashboard widget as well. Wouldn’t it be an idea to make that an option? So, somewhere in the options, you can set the level for showing the dashboard widget based on an option “manage_options/edit_posts”?
Great plugin! I have a couple of minor issues that have come up regarding the HTML validation.
First is that I use the micro css setting and had to change:
linear-gradient(top
to:
linear-gradient(to top
The second and third are a little more involved and didn’t want to change the plugin files just yet:
Error: Bad value website for attribute autocomplete on element input: The string website is not a valid autofill field name.
From line 17, column 7126; to line 17, column 7265
e</label> <input id=”cfx-website” name=”cfx-website” type=”text” value=”” size=”50″ maxlength=”100″ placeholder=”Your Website” autocomplete=”website”></fiel
Error: Bad value subject for attribute autocomplete on element input: The string subject is not a valid autofill field name.
From line 17, column 7618; to line 17, column 7758
t</label> <input id=”cfx-subject” name=”cfx-subject” type=”text” value=”” size=”50″ maxlength=”100″ placeholder=”Email Subject” autocomplete=”subject”></fiel
I think that the above “website” value needs to be “url”.
So just some little updates might be needed, I can change myself but I would rather you give direction.
Thank you!
]]>Hi Jeff,
Appreciating your hard work, I seem to have performance issues with the plugin.
Originally I used CF7 until I realised how much performance overhead reCaptcha3 adds (plus one SECOND of load time on my cheap shared hosting) so I started looking for alternatives.
CF has some really nice features like storing messages in the database and Ajax submissions but using it gives 0.5s increase in page load time compared to the no-js SBCF plugin and adds about 18 extra requests as confirmed by Pingdom and GT tools.
Again, the issue could be just by cheap hosting so I’ll try not to whinge too much ??
Any ideas how this could be mitigated?
]]>Tried to make Google reCaptcha as Required but I find no where to set Google reCaptcha. Not even the Advanced section.
]]>Hi,
I want to use the challenge question instead of Google reCaptcha. But its location does not make sense (above the message) as it should after all the other fields including the message.
Is there a way you can fix this or at least provide the option to rearrange the location of all fields?
Thanks.
]]>