• Please, please, please provide the ability to create our own lists and add them. The possibilities for this plugin are endless and providing this feature will greatly enhance Listo’s and CF7’s capability.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    You can add your custom list modules using the listo_list_types filter hook.

    Thread Starter Terence Milbourn

    (@pubdirltd)

    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 4 years, 6 months ago by robbora.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom lists?’ is closed to new replies.