Michael Simpson
Forum Replies Created
-
Try this:
// Drugs filter function DrugsFilter($formData) { $formName = 'Prescription'; // change this to your form's name if ($formData && $formName == $formData->title) { // Create a consolidated "Drugs" field $listOfDrugs = []; for ($idx = 1; $idx <= 15; ++$idx) { $fieldName = 'Drug' . $idx; if (isset($formData->posted_data[$fieldName]) && $formData->posted_data[$fieldName] ) { $listOfDrugs[] = $formData->posted_data[$fieldName]; unset($formData->posted_data[$fieldName]); } } $formData->posted_data['Drugs'] = implode(', ', $listOfDrugs); } return $formData; } add_filter('cfdb_form_data', 'DrugsFilter');Forum: Plugins
In reply to: [Contact Form DB] Hide a field?However you choose to it on your form doesn’t matter to CFDB. A form field is a form field. Check with your form plugin on how best to add a hidden field.
Forum: Plugins
In reply to: [Contact Form DB] mysql_connect deprecatedForum: Plugins
In reply to: [Contact Form DB] Form not appearing in CFDBAfter you have made your first submission against that new form, CFDB should display that form once it has data captured.
- This reply was modified 9 years, 3 months ago by Michael Simpson.
Forum: Plugins
In reply to: [Contact Form DB] Checkbox and Record Timestamp for each edited record1. It only provides textboxes, no checkboxes.
2. It does not support timestamps for edits.
Sorry.
Forum: Plugins
In reply to: [Contact Form DB] Plugin Missing from WordPress Plugin DirectoryYou can find the latest here: https://github.com/mdsimpson/contact-form-7-to-database-extension/releases/
Forum: Plugins
In reply to: [Contact Form DB] Hide a field?If you create hidden fields in your form, CFDB will save them the same as any other field.
Forum: Plugins
In reply to: [Contact Form DB] plugin is missing on the wordpress.org directoryTemporary download link for current version: https://cfdbplugin.com/files/contact-form-7-to-database-extension.2.10.29.zip
Forum: Plugins
In reply to: [Contact Form DB] Google Spreadsheet Live Data Stopped feeding live dataI might not work if you set up multifactor authentication on your Google account.
On the Security/Performance tab, click the “unbuffered” option. That might help.
I don’t know why it is getting so large. It might be related to pulling all the forms at once. You can indicate form=”form1,form2,form3″ instead of “*” to pull just a few forms, maybe leaving a form with lots of entries for a separate export.
Forum: Plugins
In reply to: [Contact Form DB] plugin is missing on the wordpress.org directoryI’ll try to get this addressed in a week. I’m a bit swamped with a lot of things going on at the moment.
Forum: Plugins
In reply to: [Contact Form DB] plugin is missing on the wordpress.org directoryYes, WP wants me to fix a potential security vulnerability, so it is temporarily delisted.
Forum: Plugins
In reply to: [Contact Form DB] How Can I Disable Captcha ValueYou can list the names of fields that you do not wish to save on the CFDB Options page
Forum: Plugins
In reply to: [Form to Post] post forms to a custom post type?You can do that with this plugin: https://wordpress.org/plugins/form-to-post/
Forum: Plugins
In reply to: [Contact Form DB] Maximum upload file size[file upload limit:10mb]Is an example tag you might put into a Contact Form 7 form definition (not in CFDB) to indicate there should be a file upload field in your form that permits files up to 10mb in size.