In the first step, the form to display, you can keep what you have coded.
Then you can do that to generate the result in the e-mail :
add_filter("wpcf7_posted_data", function ($posted_data) {
$result = "";
foreach ($posted_data["tag"] as $index => $question) {
$answer = $posted_data["ans"][$index];
$result .= "$question : $answer\n";
}
$posted_data["my_questions"] = $result;
return $posted_data;
});
And in the configuration of the e-mail, just put the tag [my_questions]
Related Posts:
- Contact Form 7: wp_mail doesn’t work after update to 4.6
- How to disable reCaptcha v3 except on Contact Form 7 pages?
- Why not to include reference to /wp-admin/admin.php in Plugin
- How do I add a 5 digit ZIP code validation to a Contact7 form?
- how to add contact form 7 shortcode in javascript variable
- How to get the path to the current theme?
- Post meta vs separate database tables
- How to add a javascript snippet to the footer that requires jQuery
- Enhance Media Manager for Gallery
- Adding Custom Text Patterns in the WP 4.5 Visual Editor
- Inserting Taxonomy Terms During a Plugin Activation?
- How to use PanelColorSettings in custom Gutenberg block?
- Is there a way for a plug-in to get it’s own version number?
- Replace audio/video enclosure with player?
- How do you use the plugin boilerplate loader class to hook actions and filters?
- How do I print a notice only on certain admin pages?
- Gutenberg ServerSideRender is deprecated, how to work with new wp.serverSideRender component?
- Turn revisions off in plugin instead of config.php?
- Add an image gallery to a custom post type?
- Unit testing wordpress plugins with plugin options
- Create a clickable name in WP_List_Table for Plugin Admin
- Plugin development without Theme adjustments?
- How to Make a Category Always Selected?
- Script to remove all inactive widgets?
- Disable $title in Plugin Options Screen?
- WordPress Localization and Templating
- WordPress Settings API: saving multiple rows of similar data
- Modify how gallery.js builds the shortcode [gallery ...] in tinyMCE?
- Why after a file is programmatically deleted, is there still a reference in the media library?
- Can’t we use strings defined as PHP constants if we want to translate them in a plugin?
- My new WordPress plugin version is not showing up in the plugin directory. It’s been 4 days what could the problem be?
- DataBase connection problem with PHPUnit and WordPress
- Synchronize Custom post type tags to WordPress default posts tags
- Tabbed navigation for plugin options using same row in database for all?
- Ethics question: what qualifies as a fork? [closed]
- How can I prevent my plugin’s next version from updating one of the files?
- How to i18n text coming from the db or from an external source
- Plugin settings not saving
- Add a panel to edit post
- Auto-Update Plugin Creating .tmp directory, not overwriting old version
- Cannot update …/tags folder in SVN Repository
- Is there a way to ensure plugin script loads before another script?
- ORDER BY wp_post custom column name in wp_query
- Verify if user is wordpress logged in from another app since wordpress 4.0
- Is it necessary to sanitize plugin options?
- How to filter content for specific content variable
- PowerPress mobile media player
- You do not have sufficient permissions to access this page on a submenu
- WordPress function get_the_terms() returns ‘Invalid taxonomy’ error
- Trying to Implement .pdf File Upload in Admin for plugin
- Writing a wordpress plugin and trying to include the Facebook PHP SDK
- how to invoke wordpress API from other existing PHP system
- How to cancel update messages from a changed plugin
- How to get the post excerpt using post object?
- jquery & ajax sending data to php
- How to import the css in the plugin admin area?
- how to get the post id in plugin
- What’s the impact on WordPress’ performance regarding the amount of classes/files in a plugin?
- Using add_sub_menu to put into Appearance Section
- Taxonomy archive page listing terms instead of posts
- How to call code when adding WooCommerce menu items via woocommerce_account_menu_items
- jquery in wordpress plugin with depdendency
- Plugin creation, restricting access to specific roles
- wordpress automatic update does not run
- How to avoid conflict of plugin style and theme style?
- Ajax +wordpress onClick link redirect to new page and create html content
- How to move an image in a plugin to the upload directory and make it as a media of wordpress?
- Is it possible for two WordPress plugins to share the same code base?
- Script to replace default blogroll with links to my social media URLs
- How to show multiple instances of the WP125 Widget?
- wp.media libary pdf type
- Add multiple checkboxes as single field to Custom Shipping Method Settings Page
- Posts form with AJAX request – Plugin development
- register_meta not showing custom post type metabox data in rest api
- Want to know how to reveal a WordPress theme, considering the theme name is hidden?
- Where to add functions and code snippets in wordpress
- How to re-render inspector controls?
- Save meta box data from selected dropdown list in bbpress reply form
- Sanitize WordPress Array Input?
- Events Manager: Create custom Placeholder for use in Email notification
- WC REST API Error Handling
- woocommerce add a new bulk action in the bulk actions dropdown in the orders list
- Creating a virtual page without exit
- Plugin Development – Call to undefined function comment_exists()
- Ajax Response Error | just getting error as the response
- Building WordPress Themes With Bootstrap with Adi Purdila → TutsPlus
- Allow user to change homepage
- Need to change buddypress profile url by add_rewrite_rule
- wp_mail links are dead
- Generate activation url
- Use different archive template for plugin
- Get custom wp_query search results to appear on search.php
- Is it safe to use PUT and DELETE requests
- Multi-part form and wp_redirect()
- Sharing changes to a post (preview changes) with another user
- Settings API not Saving to Database or Display
- Error using @wordpress/create-block to create multiple blocks on Windows
- How will i add an option under customizer the event calendar section?
- Elementor Top-Bar
- Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?