You can add your custom list modules using the listo_list_types filter hook.
I am not a developer, so that answer doesn’t mean the same thing to me, as it does to you. Thanks, but telling me to build my own solution doesn’t work for me.
Dear Takayuki san,
Can you please throw some more light on listo_list_types? Need to have a custom list with states of India etc.
Thank you
Dear Takayuki san,
I too am having difficulty getting a custom list to work as it stands at this time It kills my entire questionnaire and I would like to be able to present an instrument and how many years the client has had experience with it and then be able to ask if they have had additional experience with other instruments. I downloaded your plugin because it was recommended by contact form 7 but I haven’t found enough info on it to properly create the custom list I need.
any assist you can offer would be appreciated.
As I had the same issue here an example code to add available categories in a checkbox list
In yourtheme/functions.php add following code lines:
add_filter('listo_list_types', 'listo_list_types_func');
function listo_list_types_func($list_types){
$list_types['categories'] = 'Listo_Categories';
return $list_types;
}
class Listo_Categories implements Listo {
public static function items(){
$categories = get_categories(['hide_empty' => 0]);
foreach( $categories as $cat ){
$items [$cat->cat_ID] = $cat->name;
}
return $items;
}
public static function groups(){}
}
In your CF7 form add the following [shortcode]
[checkbox categories data:categories]
That’s it
Hope this help
-
This reply was modified 6 years ago by
robbora.