Michael Simpson
Forum Replies Created
-
Create another function like “location_form_handler” but name it something different like “another_form_handler” and fill in the code values:
function another_form_handler($formData) // Use a different function name for each form { $formName = 'Contact Page 2'; // change this to your form's name $fieldName = 'another_Field'; // change this to your field's name $newFieldName = $fieldName . '_email'; return form_with_pipes_handler($formName, $fieldName, $newFieldName, $formData); }Then register it to be called using that new name
add_filter('cfdb_form_data', 'another_form_handler'); // ensure 2nd param matches above function nameForum: Plugins
In reply to: [Contact Form DB] Edit submission on front-end doesn’t workI think editing will not work when using “*” for the form name. You must indicate the actual form name.
Forum: Plugins
In reply to: [Contact Form DB] No longer on WordPressNothing happens to your data. There is an option on the CFDB Options page to drop data when you uninstall the plugin, but that should be off by default. As long as that is off, you can uninstall and reinstall at will.
Forum: Plugins
In reply to: [Contact Form DB] Two Forms One DatabaseYou having registered the function to be called by anything. Forgot this line at the end:
add_filter('cfdb_form_data', 'myFilter');Forum: Plugins
In reply to: [Contact Form DB] No dataNo, the CSV exported by CFDB. I want to see why CFSB can export the data to CSV but not XLS.
Forum: Plugins
In reply to: [Contact Form DB] Is this still an active pluginIt is. Use the latest version from GitHub.
Forum: Plugins
In reply to: [Contact Form DB] No dataIf you want to share the csv file with me so I can test for a bug, please contact me at info@cfdbplugin.com
Forum: Plugins
In reply to: [Contact Form DB] Export from datesCreate an export link or shortcode from the CFDB Shortcode page. Filter based on time: https://cfdbplugin.com/?page_id=553
- This reply was modified 9 years, 2 months ago by Michael Simpson.
Forum: Plugins
In reply to: [Contact Form DB] No form submissions in the databaseCFDB DB is not aware of your forms until there is at least one submission captured.
Forum: Plugins
In reply to: [Contact Form DB] Shortcode cfdb-html – Formatting DateUse a shortcode
[cfdb-table form="Act Now" filter="submit_time>=Mar 5, 2017 6:08 AM&&submit_time<Mar 6, 2017 6:08 AM"]Forum: Plugins
In reply to: [Form to Post] Set post_title to post IDLook at “Setting Post Meta (Custom Fields)” on https://wordpress.org/plugins/form-to-post/
Forum: Plugins
In reply to: [Contact Form DB] No dataDoes it export as CSV?
Forum: Plugins
In reply to: [Contact Form DB] Two Forms One DatabaseWhat you could do is keep both forms, but make sure the field names are the same for each (even though the display name for the field is in a different language). Then you can pull results from both forms in any shortcode or export using
form="form1,form2"(name of your forms).Or, using the link you cited above, you could add a filter on one of the forms and save it to the other form. (Again the form field names would need to be the same).
function myFilter($formData) { if ($formData->title == 'form2 name') { $formData->title = 'form1 name'; } return $formData; }If the form field names were not the same, then you could add additional code to change them each form2 field name to a name in form1.
add_filter(‘cfdb_form_data’, ‘myFilter’);
Forum: Plugins
In reply to: [Contact Form DB] DB SIze limitationsIt depends on the memory of the PHP server. I’m thinking a file of that size might fail to load all the records. But it depends on how many fields, how much data in each field.
Forum: Plugins
In reply to: [Contact Form DB] CFDB EditorIt is possible that other plugins are injecting conflicting Javascript. To see if this is the case, try temporarily deactivating other plugins.