deob
Forum Replies Created
-
First off, I don’t agree with your reply to my suggestion. Going through and hiding and un-hiding fields is a pain. All you need to do is add a check box that states export hidden fields. It would be a much better interface. On a large form that has many fields, unhiding and hiding fields is very cumbersome. As well, a large form is difficult to scroll through in the WordPress dashboard without hiding fields to make it more manageable for a quick reference.
You can look at the directory for my test site, I have it open for you.
https://www.gqcccquiltshow.org/oshine/wp-content/uploads/cf7-database/
No images are showing up in the directory. Also, normally the link shows in the database field and it is showing only a name and not the link.
I have included screen shots here for you https://www.gqcccquiltshow.org/oshine/wp-content/uploads/cf7-database/screenshots/
I am using another extension Smart Grids and they needed to update to handle the new Contact Form 5.4 upload code. You extension only works if I do not update Contact Form to 5.4.
Hi Bruce,
For some reason I did not see the email saying your responded. Sorry for the slow response.
The code did not work. Nothing is being saved.
Couple of items that may change your code.
Your plugin is entitled cf7-database not cf7-db so the folder path is cf7-database/frontend.
Also, the data in the database only lists the file name but I figure that is all related.
Another item that you may considering in your next update. We have hidden fields because they are too long and want to be able to easily see all the form submissions without having to scroll alot (we will have a few hundred). However, when you export only visible fields are exporting. Having an option to export all fields no matter what fields are visible in the dashboard would be nice as we always want to export all fields.
Thanks
Thanks.
You may want to update your helper code as it does not have the “;”
This is what it gave me.
add_filter( 'cf7sg_dynamic_dropdown_taxonomy_query','show_category_taxonomy_query',10,3); /** * Filter dropdown taxonomy query parameter. * (see https://developer.ww.wp.xz.cn/reference/classes/wp_term_query/__construct/) * @param array $args array of taxonomy query attributes. * @param string $name the field name being populated. * @param string $cf7_key the form unique key. * @return array of query attributes. */ function show_category_taxonomy_query($args, $name, $cf7_key){ //these are the label users will see when the dropdown opens. if('2021-entry'!==$cf7_key || 'show-category' !== $name){ return $args; } //use only the child terms of a parent. $args['parent']=0 return $args; }Ok thanks.
Ok thanks
Hi Aurovrata,
Can you put 4.8.1 in the available previous versions to download? I need to roll back due to another plugin that is not working with Contract Form 7 5.4 that I missed in my testing.
Thanks,
DoreenIt worked on my test form in my live environment as well.
Thanks
Do you have a sample code snippet of a form that has a dynamic drop-down field pulling from a taxonomy that returns the name in the email instead of the slug?
It works in my test environment.
I will try my test form in my live environment and confirm it works there as well.
Forum: Plugins
In reply to: [Smart Grid-Layout Design for Contact Form 7] blank line in dynamic drop downIt works now. Thanks.
I will have to check out the other plug-in.
I did create another post for the data-max.
Forum: Plugins
In reply to: [Smart Grid-Layout Design for Contact Form 7] blank line in dynamic drop downAlso, on the same form the data-max for the table isn’t working. I am thinking it may all be part of the same issue.
Forum: Plugins
In reply to: [Smart Grid-Layout Design for Contact Form 7] blank line in dynamic drop down- This reply was modified 5 years, 3 months ago by deob.
Forum: Plugins
In reply to: [Smart Grid-Layout Design for Contact Form 7] blank line in dynamic drop downI tried putting this (below) in the functions.php but nothing happens. I also have tried using the helper code for only selecting child categories but that totally breaks the site. Am I missing any area of the code that I need to personalize to my form?
add_filter( ‘cf7sg_dynamic_dropdown_default_value’,’show_category_dynamic_default_option’,10,3);
/**
* Filter dynamic dropdown default empty label.
* @param string $label the label for the default value, this is null by default and not shown.
* @param string $name the field name being populated.
* @param string $cf7_key the form unique key.
* @return string the label for the default value, returning a non-null value with display this as the first option.
*/
function show_category_dynamic_default_option($default, $name, $cf7_key){
if(‘2021-entry’!==$cf7_key || ‘show-category’ !== $name){
return $default;
}
$default = ‘Please select an option…’;
return $default;
}For this field [dynamic_select* show-category class:select2 “slug:portfolio_categories”]
Thanks