Contact Form 7 Custom module [closed]
Name of the input field should match with the filler shortcode so that it returns data. I changed $output=”<select name=”contact_venue” to $output = “<select name=”selected-venue” and it works now.
Name of the input field should match with the filler shortcode so that it returns data. I changed $output=”<select name=”contact_venue” to $output = “<select name=”selected-venue” and it works now.
Try using jQuery for this, something like <?php $name = $_GET[‘name’]; ?> <script type=”text/javascript”> $(document).ready(function(){ var yourget=”<?php echo $name; ?>”; $(‘input[name=”nameofyourfield”]’).val(yourget); )}; </script>
The Codex page for is_plugin_active explains what your problem is: NOTE: defined in wp-admin/includes/plugin.php, so this is only available from within the admin pages. If you want to use this function from within a template, you will need to manually require plugin.php, like this: <?php include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ ); ?> <?php is_plugin_active($plugin) ?>
I think the problem is most likely that you have given all 3 of your select fields the same identifying name “date”. Give them each a unique name and that will solve your problem.
Contact form 7 Lets you call a JavaScript function after the form has been submitted You will find the Additional Settings field at the bottom of the contact form management page and you need to use the hook named on_sent_ok something like this: on_sent_ok: “$.fancybox.close();”
I haven’t found a way of stopping this other than to set up your contact form to prefix the subject e.g.[MySite] and then use a rule to stop it being filtered as junk.
The documentation for Contact 7 is pretty clear about how to do this – you just need to create a separate mail template for each form and edit the basic header fields http://contactform7.com/setting-up-mail/
It just wasn’t concatenated correctly (i.e. misuse of single/double quotes). This’ll work: $output .= ‘<div class=”colmsg”><label for=”smcf-message”>*’ . __(“Message”, “smcf”) . ‘: </label> <select name=””> <option>Post1</option> <option>Post2</option> <option>Post1</option></select></div><br/>’;
A solution I can think of is creating an almost empty page template that contains the bare minimum header, body (your shortcode) and footer. Create a page with this template and load iFramed. Like: <?php /** * Template Name: Almost Empty Page for Thickbox */ // REPLACE THIS get_header WITH THE CONTENTS OF THE FILE … Read more
Contact Form 7 does not save form submissions to a database, so you have no saved previous form submissions to check a current submission against. That means you’ll need to have a plugin that can save entries to a database (the plugin author seems to recommend “Flamingo” for that). Once you’ve got those, you’ll need … Read more