Set id of cf7 in the data save function [closed]
Try this: // Get current form. $wpcf7 = WPCF7_ContactForm::get_current(); $contact_form_id = $wpcf7->id;
Try this: // Get current form. $wpcf7 = WPCF7_ContactForm::get_current(); $contact_form_id = $wpcf7->id;
try adding the following code to your functions.php file, add_filter( ‘wpcf7_autop_or_not’,’__return_false’); the will remove the <p></p> wrapping tags added by the CF7 plugin for each new line in your form.
The CF7 plugin does not give you access to the HTML markup formatting function of the field tags. So you need to capture the JavaScript event fired when the field is changed. To do this you can tag a script at the end of your form, <label>[text* name id:name]</label> <label>[text* surname id:surname]</label> [submit] <script> (function($){ … Read more
I answered this question on Stackoverflow, and reposting the answer here. We would never edit it there though, it’d be impossible, quite, the CF7 plugin was never conceived for anything more complex than a contact form unfortunately. You may want to play around with the Smart Grid-layout extension which was specifically designed for creating and … Read more
Email settings are usually somewhere in the database. You’ll likely find it in a table that gives you a good clue about where the setting can be changed. It may be wise not to just search-and-replace it directly since data can be serialized, meaning that if you replace the address with a different one that … Read more
I’ve used the Gravity Forms plugin and its post form-submission hook to fire off a server-side web2lead curl request in wordpress before now. Wasn’t too difficult. Essentially your web2lead form submission is purely server-side so the regular gravity forms entry logging (including IP etc…) just carries on working. You get your data in both WP … Read more
That action means “post the form back to the website root”. Your website root is the very ‘top level’ of your domain, for example http://www.example.com/. The hash indicates the point in the document to jump to – in this case, I’m betting the ID of the form is wpcf7-f1-t1-o1? You shouldn’t need to alter this. … Read more
You can customize the “Your message was sent successfully. Thanks.” message with-in the the form’s edit page at the bottom so add something like this: Your message was sent successfully. Thanks.</p> <p><a href=”http://pages.sbcglobal.net/bluealbino/SYP/images/mrburns-oh.gif”><img width=”234″ height=”369″ alt=”” src=”http://pages.sbcglobal.net/bluealbino/SYP/images/mrburns-oh.gif” class=”alignnone”></a></p> Update: Just tried and it works with this exact code.
If 2 fields have same name, web browsers ignore one of them. So you can’t have the name as name=”post_content” using contact form 7(or anything else) You can however make the name as name=”post_content[]” which tells the browser that the field is not single & the browser won’t ignore any of them. If you use … Read more
You can use a tel shortcode to do this: [tel* id:field-mobile 10/10 “placeholder text”] This brings up the issue of browser support; if the browser in use does not support the tel input type, it will fall back to a plain text field. Source: http://contactform7.com/text-fields/ (halfway down the page)