{
	"$schema": "https://playground.wordpress.net/blueprint-schema.json",
	"landingPage": "/contact-us/",
	"login": true,
	"preferredVersions": {
		"php": "8.0",
		"wp": "latest"
	},
	"steps": [
		{
			"step": "installPlugin",
			"pluginData": {
				"resource": "wordpress.org/plugins",
				"slug": "contact-forms"
			},
			"options": {
				"activate": true
			}
		},
		{
			"step": "setSiteOptions",
			"options": {
				"permalink_structure": "/%postname%/",
				"blogname": "Contact Forms Demo"
			}
		},
		{
			"step": "runPHP",
			"code": "<?php require_once '/wordpress/wp-load.php'; $avail_fields = get_option('accua_forms_avail_fields', array()); $avail_fields['start_date'] = array('version' => 2, 'id' => 'start_date', 'name' => 'Preferred Start Date', 'type' => 'date', 'description' => '', 'default_value' => '', 'default_date_value' => '', 'allowed_values' => '', 'allowed_extensions' => '', 'min_date' => '', 'max_date' => ''); $avail_fields['resume'] = array('version' => 2, 'id' => 'resume', 'name' => 'Resume / CV', 'type' => 'file', 'description' => '', 'default_value' => '', 'default_date_value' => '', 'allowed_values' => '', 'allowed_extensions' => 'pdf,doc,docx', 'min_date' => '', 'max_date' => ''); $avail_fields['department'] = array('version' => 2, 'id' => 'department', 'name' => 'Department', 'type' => 'select', 'description' => '', 'default_value' => '', 'default_date_value' => '', 'allowed_values' => \"Sales\\r\\nMarketing\\r\\nEngineering\\r\\nSupport\\r\\nHuman Resources\\r\\nOther\", 'allowed_extensions' => '', 'min_date' => '', 'max_date' => ''); $avail_fields['contact_reason'] = array('version' => 2, 'id' => 'contact_reason', 'name' => 'Reason for Contact', 'type' => 'radio', 'description' => '', 'default_value' => '', 'default_date_value' => '', 'allowed_values' => \"General Inquiry\\r\\nSupport Request\\r\\nPartnership\\r\\nFeedback\", 'allowed_extensions' => '', 'min_date' => '', 'max_date' => ''); $avail_fields['sessions'] = array('version' => 2, 'id' => 'sessions', 'name' => 'Sessions of Interest', 'type' => 'multiselect', 'description' => '', 'default_value' => '', 'default_date_value' => '', 'allowed_values' => \"Keynote\\r\\nWorkshop A: Frontend Dev\\r\\nWorkshop B: Backend Dev\\r\\nNetworking Lunch\\r\\nPanel Discussion\", 'allowed_extensions' => '', 'min_date' => '', 'max_date' => ''); $avail_fields['dietary'] = array('version' => 2, 'id' => 'dietary', 'name' => 'Dietary Requirements', 'type' => 'multicheckbox', 'description' => '', 'default_value' => '', 'default_date_value' => '', 'allowed_values' => \"Vegetarian\\r\\nVegan\\r\\nGluten-free\\r\\nHalal\\r\\nNo restrictions\", 'allowed_extensions' => '', 'min_date' => '', 'max_date' => ''); $avail_fields['agree_terms'] = array('version' => 2, 'id' => 'agree_terms', 'name' => 'I agree to the Terms and Conditions', 'type' => 'checkbox', 'description' => '', 'default_value' => '', 'default_date_value' => '', 'allowed_values' => '', 'allowed_extensions' => '', 'min_date' => '', 'max_date' => ''); $avail_fields['related_article'] = array('version' => 2, 'id' => 'related_article', 'name' => 'Related Article', 'type' => 'post-select', 'description' => '', 'default_value' => '', 'default_date_value' => '', 'allowed_values' => '', 'allowed_extensions' => '', 'min_date' => '', 'max_date' => ''); $avail_fields['related_pages'] = array('version' => 2, 'id' => 'related_pages', 'name' => 'Related Pages', 'type' => 'post-multicheckbox', 'description' => '', 'default_value' => '', 'default_date_value' => '', 'allowed_values' => '', 'allowed_extensions' => '', 'min_date' => '', 'max_date' => ''); update_option('accua_forms_avail_fields', $avail_fields); ?>"
		},
		{
			"step": "runPHP",
			"code": "<?php require_once '/wordpress/wp-load.php'; wp_insert_post(array('post_title' => 'Getting Started with Our Platform', 'post_content' => '<!-- wp:paragraph --><p>Welcome to our platform! This guide covers the basics.</p><!-- /wp:paragraph -->', 'post_status' => 'publish', 'post_type' => 'post')); wp_insert_post(array('post_title' => 'Tips for Better Productivity', 'post_content' => '<!-- wp:paragraph --><p>Here are our top tips for getting the most out of your workflow.</p><!-- /wp:paragraph -->', 'post_status' => 'publish', 'post_type' => 'post')); wp_insert_post(array('post_title' => 'Frequently Asked Questions', 'post_content' => '<!-- wp:paragraph --><p>Answers to the questions we hear most often.</p><!-- /wp:paragraph -->', 'post_status' => 'publish', 'post_type' => 'post')); wp_insert_post(array('post_title' => 'Company News and Updates', 'post_content' => '<!-- wp:paragraph --><p>The latest news from our team.</p><!-- /wp:paragraph -->', 'post_status' => 'publish', 'post_type' => 'post')); wp_insert_post(array('post_title' => 'Feature Spotlight: Contact Forms', 'post_content' => '<!-- wp:paragraph --><p>A deep dive into our contact forms plugin features.</p><!-- /wp:paragraph -->', 'post_status' => 'publish', 'post_type' => 'post')); ?>"
		},
		{
			"step": "runPHP",
			"code": "<?php require_once '/wordpress/wp-load.php'; $forms = get_option('accua_forms_saved_forms', array()); if (!is_array($forms)) $forms = array(); $lastid = (int) get_option('accua_forms_lastid', 0); $admin_email = get_option('admin_email'); $lastid++; $fid_toplabel = $lastid; $forms[$lastid] = array('use_ajax' => true, 'title' => 'Contact Us (Top Labels)', 'layout' => 'toplabel', 'success_message' => '<div><h2>Thank you {first_name} {last_name},</h2><p>We have received your message and will get back to you shortly.</p></div>', 'error_message' => '<div><h2>Something went wrong.</h2><p>Please try again or contact us directly.</p></div>', 'emails_from_name' => '', 'emails_from' => '', 'admin_emails_to' => $admin_email, 'emails_bcc' => '', 'admin_emails_subject' => 'New contact form submission', 'admin_emails_message' => '{__submitted_html}', 'confirmation_emails_subject' => 'We received your message', 'confirmation_emails_message' => '<div><h2>Thank you {first_name},</h2><p>We will get back to you soon.</p></div>', 'fields' => array('first_name' => array('version' => 2, 'istance_id' => 'first_name', 'widget_number' => '', 'ref' => 'first_name', 'required' => true, 'css_class' => '', 'css_id' => ''), 'last_name' => array('version' => 2, 'istance_id' => 'last_name', 'widget_number' => '', 'ref' => 'last_name', 'required' => true, 'css_class' => '', 'css_id' => ''), 'email' => array('version' => 2, 'istance_id' => 'email', 'widget_number' => '', 'ref' => 'email', 'required' => true, 'css_class' => '', 'css_id' => ''), 'telephone' => array('version' => 2, 'istance_id' => 'telephone', 'widget_number' => '', 'ref' => 'telephone', 'required' => false, 'css_class' => '', 'css_id' => ''), 'contact_reason' => array('version' => 2, 'istance_id' => 'contact_reason', 'widget_number' => '', 'ref' => 'contact_reason', 'required' => true, 'css_class' => '', 'css_id' => ''), 'message' => array('version' => 2, 'istance_id' => 'message', 'widget_number' => '', 'ref' => 'message', 'required' => true, 'css_class' => '', 'css_id' => ''))); update_option('accua_forms_saved_forms', $forms); update_option('accua_forms_lastid', $lastid); ?>"
		},
		{
			"step": "runPHP",
			"code": "<?php require_once '/wordpress/wp-load.php'; $forms = get_option('accua_forms_saved_forms', array()); $lastid = (int) get_option('accua_forms_lastid', 0); $admin_email = get_option('admin_email'); $lastid++; $fid_sidebyside = $lastid; $forms[$lastid] = array('use_ajax' => true, 'title' => 'Job Application (Side by Side Labels)', 'layout' => 'sidebyside', 'success_message' => '<div><h2>Application Received</h2><p>Thank you {first_name}! We will review your application and get back to you within 5 business days.</p></div>', 'error_message' => '<div><h2>Submission Error</h2><p>Please try again.</p></div>', 'emails_from_name' => '', 'emails_from' => '', 'admin_emails_to' => $admin_email, 'emails_bcc' => '', 'admin_emails_subject' => 'New job application: {first_name} {last_name}', 'admin_emails_message' => '{__submitted_html}', 'confirmation_emails_subject' => 'Application received', 'confirmation_emails_message' => '<div><p>Dear {first_name}, your application has been received.</p></div>', 'fields' => array('first_name' => array('version' => 2, 'istance_id' => 'first_name', 'widget_number' => '', 'ref' => 'first_name', 'required' => true, 'css_class' => '', 'css_id' => ''), 'last_name' => array('version' => 2, 'istance_id' => 'last_name', 'widget_number' => '', 'ref' => 'last_name', 'required' => true, 'css_class' => '', 'css_id' => ''), 'email' => array('version' => 2, 'istance_id' => 'email', 'widget_number' => '', 'ref' => 'email', 'required' => true, 'css_class' => '', 'css_id' => ''), 'telephone' => array('version' => 2, 'istance_id' => 'telephone', 'widget_number' => '', 'ref' => 'telephone', 'required' => true, 'css_class' => '', 'css_id' => ''), 'department' => array('version' => 2, 'istance_id' => 'department', 'widget_number' => '', 'ref' => 'department', 'required' => true, 'css_class' => '', 'css_id' => ''), 'country' => array('version' => 2, 'istance_id' => 'country', 'widget_number' => '', 'ref' => 'country', 'required' => true, 'css_class' => '', 'css_id' => ''), 'start_date' => array('version' => 2, 'istance_id' => 'start_date', 'widget_number' => '', 'ref' => 'start_date', 'required' => false, 'css_class' => '', 'css_id' => ''), 'resume' => array('version' => 2, 'istance_id' => 'resume', 'widget_number' => '', 'ref' => 'resume', 'required' => true, 'css_class' => '', 'css_id' => ''), 'message' => array('version' => 2, 'istance_id' => 'message', 'widget_number' => '', 'ref' => 'message', 'required' => false, 'css_class' => '', 'css_id' => ''))); update_option('accua_forms_saved_forms', $forms); update_option('accua_forms_lastid', $lastid); ?>"
		},
		{
			"step": "runPHP",
			"code": "<?php require_once '/wordpress/wp-load.php'; $forms = get_option('accua_forms_saved_forms', array()); $lastid = (int) get_option('accua_forms_lastid', 0); $admin_email = get_option('admin_email'); $lastid++; $fid_inline = $lastid; $forms[$lastid] = array('use_ajax' => true, 'title' => 'Quick Feedback (Inline Labels)', 'layout' => 'inlinelabel', 'success_message' => '<div><h2>Thanks for your feedback!</h2><p>We appreciate you taking the time to write to us.</p></div>', 'error_message' => '<div><h2>Error</h2><p>Please try again.</p></div>', 'emails_from_name' => '', 'emails_from' => '', 'admin_emails_to' => $admin_email, 'emails_bcc' => '', 'admin_emails_subject' => 'New feedback received', 'admin_emails_message' => '{__submitted_html}', 'confirmation_emails_subject' => '', 'confirmation_emails_message' => '', 'fields' => array('first_name' => array('version' => 2, 'istance_id' => 'first_name', 'widget_number' => '', 'ref' => 'first_name', 'required' => true, 'css_class' => '', 'css_id' => ''), 'email' => array('version' => 2, 'istance_id' => 'email', 'widget_number' => '', 'ref' => 'email', 'required' => true, 'css_class' => '', 'css_id' => ''), 'department' => array('version' => 2, 'istance_id' => 'department', 'widget_number' => '', 'ref' => 'department', 'required' => false, 'css_class' => '', 'css_id' => ''), 'message' => array('version' => 2, 'istance_id' => 'message', 'widget_number' => '', 'ref' => 'message', 'required' => true, 'css_class' => '', 'css_id' => ''))); update_option('accua_forms_saved_forms', $forms); update_option('accua_forms_lastid', $lastid); ?>"
		},
		{
			"step": "runPHP",
			"code": "<?php require_once '/wordpress/wp-load.php'; $forms = get_option('accua_forms_saved_forms', array()); $lastid = (int) get_option('accua_forms_lastid', 0); $admin_email = get_option('admin_email'); $lastid++; $fid_event = $lastid; $forms[$lastid] = array('use_ajax' => true, 'title' => 'Event Registration (Fieldsets + Checkboxes)', 'layout' => 'toplabel', 'success_message' => '<div><h2>Registration Complete!</h2><p>Thank you {first_name}! You are now registered for the event. Check your email for confirmation details.</p></div>', 'error_message' => '<div><h2>Registration Failed</h2><p>Please try again.</p></div>', 'emails_from_name' => '', 'emails_from' => '', 'admin_emails_to' => $admin_email, 'emails_bcc' => '', 'admin_emails_subject' => 'New event registration: {first_name} {last_name}', 'admin_emails_message' => '{__submitted_html}', 'confirmation_emails_subject' => 'Event registration confirmed', 'confirmation_emails_message' => '<div><p>Dear {first_name}, your registration has been confirmed.</p></div>', 'fields' => array('__fieldset-begin-1' => array('version' => 2, 'istance_id' => '__fieldset-begin-1', 'widget_number' => 1, 'ref' => '__fieldset-begin', 'label' => 'Personal Information', 'required' => false, 'css_class' => '', 'css_id' => ''), 'first_name' => array('version' => 2, 'istance_id' => 'first_name', 'widget_number' => '', 'ref' => 'first_name', 'required' => true, 'css_class' => '', 'css_id' => ''), 'last_name' => array('version' => 2, 'istance_id' => 'last_name', 'widget_number' => '', 'ref' => 'last_name', 'required' => true, 'css_class' => '', 'css_id' => ''), 'email' => array('version' => 2, 'istance_id' => 'email', 'widget_number' => '', 'ref' => 'email', 'required' => true, 'css_class' => '', 'css_id' => ''), 'telephone' => array('version' => 2, 'istance_id' => 'telephone', 'widget_number' => '', 'ref' => 'telephone', 'required' => false, 'css_class' => '', 'css_id' => ''), '__fieldset-end-1' => array('version' => 2, 'istance_id' => '__fieldset-end-1', 'widget_number' => 1, 'ref' => '__fieldset-end', 'required' => false, 'css_class' => '', 'css_id' => ''), '__fieldset-begin-2' => array('version' => 2, 'istance_id' => '__fieldset-begin-2', 'widget_number' => 2, 'ref' => '__fieldset-begin', 'label' => 'Event Preferences', 'required' => false, 'css_class' => '', 'css_id' => ''), 'sessions' => array('version' => 2, 'istance_id' => 'sessions', 'widget_number' => '', 'ref' => 'sessions', 'required' => true, 'css_class' => '', 'css_id' => ''), 'dietary' => array('version' => 2, 'istance_id' => 'dietary', 'widget_number' => '', 'ref' => 'dietary', 'required' => false, 'css_class' => '', 'css_id' => ''), '__fieldset-end-2' => array('version' => 2, 'istance_id' => '__fieldset-end-2', 'widget_number' => 2, 'ref' => '__fieldset-end', 'required' => false, 'css_class' => '', 'css_id' => ''), 'agree_terms' => array('version' => 2, 'istance_id' => 'agree_terms', 'widget_number' => '', 'ref' => 'agree_terms', 'required' => true, 'css_class' => '', 'css_id' => ''), 'message' => array('version' => 2, 'istance_id' => 'message', 'widget_number' => '', 'ref' => 'message', 'required' => false, 'css_class' => '', 'css_id' => ''))); update_option('accua_forms_saved_forms', $forms); update_option('accua_forms_lastid', $lastid); ?>"
		},
		{
			"step": "runPHP",
			"code": "<?php require_once '/wordpress/wp-load.php'; $forms = get_option('accua_forms_saved_forms', array()); $lastid = (int) get_option('accua_forms_lastid', 0); $admin_email = get_option('admin_email'); $lastid++; $fid_content = $lastid; $forms[$lastid] = array('use_ajax' => true, 'title' => 'Content Feedback (Post Select + HTML)', 'layout' => 'toplabel', 'success_message' => '<div><h2>Feedback Received</h2><p>Thank you for your feedback on our content!</p></div>', 'error_message' => '<div><h2>Error</h2><p>Please try again.</p></div>', 'emails_from_name' => '', 'emails_from' => '', 'admin_emails_to' => $admin_email, 'emails_bcc' => '', 'admin_emails_subject' => 'Content feedback received', 'admin_emails_message' => '{__submitted_html}', 'confirmation_emails_subject' => '', 'confirmation_emails_message' => '', 'fields' => array('__html-1' => array('version' => 2, 'istance_id' => '__html-1', 'widget_number' => 1, 'ref' => '__html', 'default_value' => '<div style=\"background:#f0f7ff;border:1px solid #c0d8f0;border-radius:4px;padding:12px 16px;margin-bottom:1em;\"><strong>Help us improve!</strong> Select the article you are providing feedback about, then tell us what you think.</div>', 'required' => false, 'css_class' => '', 'css_id' => ''), 'related_article' => array('version' => 2, 'istance_id' => 'related_article', 'widget_number' => '', 'ref' => 'related_article', 'required' => true, 'post_type' => 'post', 'css_class' => '', 'css_id' => ''), 'related_pages' => array('version' => 2, 'istance_id' => 'related_pages', 'widget_number' => '', 'ref' => 'related_pages', 'required' => false, 'post_type' => 'page', 'css_class' => '', 'css_id' => ''), 'contact_reason' => array('version' => 2, 'istance_id' => 'contact_reason', 'widget_number' => '', 'ref' => 'contact_reason', 'required' => true, 'css_class' => '', 'css_id' => ''), 'email' => array('version' => 2, 'istance_id' => 'email', 'widget_number' => '', 'ref' => 'email', 'required' => true, 'css_class' => '', 'css_id' => ''), 'message' => array('version' => 2, 'istance_id' => 'message', 'widget_number' => '', 'ref' => 'message', 'required' => true, 'css_class' => '', 'css_id' => ''))); update_option('accua_forms_saved_forms', $forms); update_option('accua_forms_lastid', $lastid); ?>"
		},
		{
			"step": "runPHP",
			"code": "<?php require_once '/wordpress/wp-load.php'; $forms = get_option('accua_forms_saved_forms', array()); $fids = array_keys($forms); $fid_toplabel = $fids[0]; $fid_sidebyside = $fids[1]; $fid_inline = $fids[2]; $fid_event = $fids[3]; $fid_content = $fids[4]; $notice = '<!-- wp:paragraph --><p><em>Note: This is a live demo running in WordPress Playground. Form submissions are saved to the database but email notifications will not be delivered.</em></p><!-- /wp:paragraph -->'; wp_insert_post(array('post_title' => 'Contact Us', 'post_name' => 'contact-us', 'post_content' => '<!-- wp:heading --><h2>Top Labels Layout</h2><!-- /wp:heading --><!-- wp:paragraph --><p>Labels are positioned above each field. This is the most common and mobile-friendly layout.</p><!-- /wp:paragraph -->' . $notice . '<!-- wp:shortcode -->[accua-form fid=\"' . $fid_toplabel . '\"]<!-- /wp:shortcode -->', 'post_status' => 'publish', 'post_type' => 'page')); wp_insert_post(array('post_title' => 'Job Application', 'post_name' => 'job-application', 'post_content' => '<!-- wp:heading --><h2>Side by Side Labels Layout</h2><!-- /wp:heading --><!-- wp:paragraph --><p>Labels sit beside each field, ideal for wider screens and longer forms. Includes date picker, file upload, select dropdown, and telephone fields.</p><!-- /wp:paragraph -->' . $notice . '<!-- wp:shortcode -->[accua-form fid=\"' . $fid_sidebyside . '\"]<!-- /wp:shortcode -->', 'post_status' => 'publish', 'post_type' => 'page')); wp_insert_post(array('post_title' => 'Quick Feedback', 'post_name' => 'quick-feedback', 'post_content' => '<!-- wp:heading --><h2>Inline Labels Layout</h2><!-- /wp:heading --><!-- wp:paragraph --><p>Labels appear as placeholders inside the fields for a compact, modern look.</p><!-- /wp:paragraph -->' . $notice . '<!-- wp:shortcode -->[accua-form fid=\"' . $fid_inline . '\"]<!-- /wp:shortcode -->', 'post_status' => 'publish', 'post_type' => 'page')); wp_insert_post(array('post_title' => 'Event Registration', 'post_name' => 'event-registration', 'post_content' => '<!-- wp:heading --><h2>Fieldset Groups, Checkboxes &amp; Multi-Select</h2><!-- /wp:heading --><!-- wp:paragraph --><p>Demonstrates grouped fields inside fieldsets, single checkbox (terms), multi-checkbox (dietary), and multi-select (sessions).</p><!-- /wp:paragraph -->' . $notice . '<!-- wp:shortcode -->[accua-form fid=\"' . $fid_event . '\"]<!-- /wp:shortcode -->', 'post_status' => 'publish', 'post_type' => 'page')); wp_insert_post(array('post_title' => 'Content Feedback', 'post_name' => 'content-feedback', 'post_content' => '<!-- wp:heading --><h2>Post Select, HTML Block &amp; Hidden Field</h2><!-- /wp:heading --><!-- wp:paragraph --><p>Demonstrates post-select (dropdown populated from posts), post-multicheckbox (checkboxes from pages), custom HTML blocks, and hidden tracking fields.</p><!-- /wp:paragraph -->' . $notice . '<!-- wp:shortcode -->[accua-form fid=\"' . $fid_content . '\"]<!-- /wp:shortcode -->', 'post_status' => 'publish', 'post_type' => 'page')); ?>"
		},
		{
			"step": "runPHP",
			"code": "<?php require_once '/wordpress/wp-load.php'; global $wpdb; $forms = get_option('accua_forms_saved_forms', array()); $fids = array_keys($forms); $table_sub = $wpdb->prefix . 'accua_forms_submissions'; $table_val = $wpdb->prefix . 'accua_forms_submissions_values'; $names = array(array('Alice','Johnson','alice.johnson@example.com'),array('Bob','Smith','bob.smith@example.com'),array('Carol','Williams','carol.w@example.com'),array('David','Brown','david.brown@example.com'),array('Eva','Martinez','eva.m@example.com'),array('Frank','Garcia','frank.g@example.com'),array('Grace','Lee','grace.lee@example.com'),array('Henry','Wilson','henry.w@example.com'),array('Iris','Taylor','iris.t@example.com'),array('Jack','Anderson','jack.a@example.com'),array('Karen','Thomas','karen.t@example.com'),array('Leo','Moore','leo.moore@example.com')); $messages = array('I would like to learn more about your services.','Can you help me with a project?','Great plugin, just wanted to say thanks!','I have a question about pricing.','Please contact me regarding a partnership.','Interested in your enterprise plan.','How do I integrate with my existing site?','Looking forward to hearing from you.'); $reasons = array('General Inquiry','Support Request','Partnership','Feedback'); $now = time(); for ($i = 0; $i < 12; $i++) { $n = $names[$i]; $days_ago = rand(1, 30); $created = gmdate('Y-m-d H:i:s', $now - ($days_ago * 86400) - rand(60,3600)); $submitted = gmdate('Y-m-d H:i:s', $now - ($days_ago * 86400)); $fid = $fids[$i % 3]; $uri = $i % 3 === 0 ? '/contact-us/' : ($i % 3 === 1 ? '/job-application/' : '/quick-feedback/'); $stats_json = json_encode(array('user_agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)', 'platform' => 'desktop', 'tentatives' => 1, 'submit_method' => 'ajax')); $wpdb->insert($table_sub, array('afs_form_id' => (string)$fid, 'afs_post_id' => 0, 'afs_ip' => '192.168.1.' . rand(10,250), 'afs_uri' => $uri, 'afs_referrer' => '', 'afs_lang' => 'en_US', 'afs_created' => $created, 'afs_submitted' => $submitted, 'afs_status' => 0, 'afs_stats' => $stats_json, 'afs_lead_status' => $i < 4 ? 1 : 0)); $sid = $wpdb->insert_id; $wpdb->insert($table_val, array('afsv_sub_id' => $sid, 'afsv_field_id' => 'first_name', 'afsv_type' => 'textfield', 'afsv_value' => $n[0])); $wpdb->insert($table_val, array('afsv_sub_id' => $sid, 'afsv_field_id' => 'last_name', 'afsv_type' => 'textfield', 'afsv_value' => $n[1])); $wpdb->insert($table_val, array('afsv_sub_id' => $sid, 'afsv_field_id' => 'email', 'afsv_type' => 'autoreply_email', 'afsv_value' => $n[2])); $wpdb->insert($table_val, array('afsv_sub_id' => $sid, 'afsv_field_id' => 'message', 'afsv_type' => 'textarea', 'afsv_value' => $messages[$i % count($messages)])); if ($i % 3 === 0) { $wpdb->insert($table_val, array('afsv_sub_id' => $sid, 'afsv_field_id' => 'contact_reason', 'afsv_type' => 'radio', 'afsv_value' => $reasons[$i % 4])); } } ?>"
		}
	]
}
