WordPress.org

Ready to get started?Download WordPress

Forums

SurveyMe
MultiCheckbox Values - All 1's (8 posts)

  1. badoves
    Member
    Posted 3 years ago #

    Hi There - I have installed the plug-in on our site. I'm using the MultiCheckbox field for one of my questions. When I run a test, the results come back as:

    MultiCheckbox:
    1, 1, 1

    Trying to have some select which items they like from the list we provide. How do I get this to display the titles of the values they selected?

    Also, how do you disable the "email" feature that emails with each result. Alot of the selectable items on the admin side are grayed out, including ALL the items in the data collection area.

    Thanks,

    - Jimmy

    http://wordpress.org/extend/plugins/wp-survey/

  2. badoves
    Member
    Posted 3 years ago #

    I should note, the url is http://www.internaldrive.com/vote/ and we are running PHP version 5.3.2.

  3. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    I take it when you mean the results come back you are referring to emails.
    Surveys are meant save the data to tables and be either downloaded as csv or viewed directly in MySQL.
    The email is only an option that can be enabled if you think it works well with you form.
    Support for emails will be improved in later releases, but this is not a priority at the moment.

    As to why the boxes are greyed in the collection screen, this will need investigating. Email should not be enabled by default and on testing on our development system it doesn't seem to be.

    This will be looked into and any fixes will be included in out next release.

    Regards DCoda.

  4. badoves
    Member
    Posted 3 years ago #

    Hi DCoda - thanks for the quick reply.

    I am also getting the 1, 1, 1 values back when exporting to .csv, not just the email.

    The grayed out issues is causing the email to activate. When i first create the form, then go into Data Collection...everything is unchecked but grayed out. I found that hitting "apply" actually then checks everything and I can't uncheck them...so I get the emails. Strange.

    Of course, catch 22 is I need these live today. Our old survey plugin became obsolete and I had to find a new one in a pinch. Yours would work great...if I could get it to function properly.

  5. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry to here about your problem ,
    Unfortunately this will not be a quick fix, and we are also in the middle or a large rewrite of the plugin so we will endeavor that the problems are fixed in the new release.

  6. badoves
    Member
    Posted 3 years ago #

    No worries, I've switched it up to a different plugin and is working for me.

    Thanks!

  7. kevin.riemens
    Member
    Posted 2 years ago #

    if people are still having this problem I've got a solution for this.

    Go to find the file "survey.xml"

    Go to line 229 and find these lines:

    <phtml><![CDATA[<?php
    foreach($this->data as $key=>$value)
    {
    	if(is_array($value))
    	{
    
    		if(!in_array($key,array('usersettings','captcha','extended_info')))
    		{
    
    			echo "\n".urldecode($key).":\n".implode(', ',$value)."\n";
    		}
    	}
    	else
    	{
    		echo "\n".urldecode($key).":\n".$value."\n";
    	}
    }
    ?>]]></phtml>

    And then change it into:

    <phtml><![CDATA[<?php
    foreach($this->data as $key=>$value)
    {
    	if(is_array($value))
    	{
    
    		if(!in_array($key,array('usersettings','captcha','extended_info')))
    		{
    			echo "\n".urldecode($key).":\n";
    			foreach ($value as $val=>$number) {
    				echo "- ".$val."\n";
    			}
    			echo "\n";
    		}
    	}
    	else
    	{
    		echo "\n".urldecode($key).":\n".$value."\n";
    	}
    }
    ?>]]></phtml>

    Hope this helps... It worked perfectly for me!

  8. jeremy.lockhart
    Member
    Posted 2 years ago #

    Thanks Kevin, worked great to email the actual field values instead of a bunch of 1's!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags