Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SurveyJS Wordpress plugin Results page is blank #9226

Open
yogat3ch opened this issue Dec 27, 2024 · 5 comments
Open

SurveyJS Wordpress plugin Results page is blank #9226

yogat3ch opened this issue Dec 27, 2024 · 5 comments
Assignees
Labels
bug user issue An issue or bug reported by users

Comments

@yogat3ch
Copy link

Describe the bug
Using the Wordpress 1.12.4 Plugin I created a custom survey, the JSON for which is in the collapsible below. When I visit the Results page, the page is completely blank. Any ideas why the page is blank? What can I do to recover the data from the survey responses?

Steps to reproduce

JSON for Survey
{
  title: "Harmony Crossing Vendor Survey",
  description: "Seasons Greetings Harmony Crossing Farmer's Market Vendors! We're interested in hearing your reflections on the 2024 market and about the ideas you might have for the upcoming 2025 market. This survey is designed to give you an opportunity to provide some of your observations, insights and ideas.",
  logoPosition: "right",
  pages: [
    {
      name: "2024_season",
      title: "2024 Season",
      description: "These questions cover aspects of the 2024 market season",
      elements: [
        {
          type: "checkbox",
          name: "CY_months",
          title: "During what months did you attend the market?",
          choices: [
            {
              value: "Apr",
              text: "April"
            },
            "May",
            {
              value: "Jun",
              text: "June"
            },
            {
              value: "Jul",
              text: "July"
            },
            {
              value: "Aug",
              text: "August"
            },
            {
              value: "Sep",
              text: "September"
            },
            {
              value: "Oct",
              text: "October"
            },
            {
              value: "Nov",
              text: "November"
            },
            {
              value: "Dec",
              text: "December"
            }
          ],
          showNoneItem: true,
          showSelectAllItem: true
        },
        {
          type: "text",
          name: "CY_days_per_month",
          title: "With the exception of December, approximately how many market days did you attend each month?",
          inputType: "number",
          min: 0,
          max: 5,
          step: 1
        },
        {
          type: "rating",
          name: "CY_comeback",
          title: "Based on your experience of the 2024 market season, how likely are you to return for the 2025 market season?",
          autoGenerate: false,
          rateValues: [
            1,
            {
              value: "2",
              text: "Unlikely"
            },
            {
              value: 3,
              text: "Maybe"
            },
            {
              value: 4,
              text: "Likely"
            },
            5
          ],
          rateMax: 3,
          minRateDescription: "Very Unlikely",
          maxRateDescription: "Very Likely",
          displayRateDescriptionsAsExtremeItems: true
        }
      ]
    },
    {
      name: "2024_continued",
      visibleIf: "{CY_months} anyof ['Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] and {CY_days_per_month} >= 2",
      title: "2024 Season Continued",
      description: "Give us a little more detail about your 2024 experience",
      elements: [
        {
          type: "rating",
          name: "CY_profit_loss",
          title: "Are you satisfied with revenue received from this market?",
          autoGenerate: false,
          rateCount: 3,
          rateValues: [
            {
              value: 1,
              text: "Dissatisfied"
            },
            {
              value: 2,
              text: "Neither Satisfied nor Dissatified"
            },
            {
              value: 3,
              text: "Satisfied"
            }
          ]
        },
        {
          type: "rating",
          name: "CY_size_vendors",
          title: "Is the number of  vendors at the market...?",
          autoGenerate: false,
          rateCount: 3,
          rateValues: [
            1,
            {
              value: "2",
              text: "Just Right"
            },
            3
          ],
          rateMax: 3,
          minRateDescription: "Too Few",
          maxRateDescription: "Too many",
          displayRateDescriptionsAsExtremeItems: true
        },
        {
          type: "rating",
          name: "CY_size_patrons",
          startWithNewLine: false,
          title: "Is the number of patrons at the market...?",
          autoGenerate: false,
          rateCount: 3,
          rateValues: [
            1,
            {
              value: "2",
              text: "Just Right"
            },
            3
          ],
          rateMax: 3,
          minRateDescription: "Too Few",
          maxRateDescription: "Too many",
          displayRateDescriptionsAsExtremeItems: true
        },
        {
          type: "rating",
          name: "CY_vendor_variety",
          title: "Is the variety of products / vendors at the market...?",
          autoGenerate: false,
          rateCount: 3,
          rateValues: [
            1,
            {
              value: "2",
              text: "Just Right"
            },
            3
          ],
          rateMax: 3,
          minRateDescription: "Too Little",
          maxRateDescription: "Too much",
          displayRateDescriptionsAsExtremeItems: true
        },
        {
          type: "ranking",
          name: "CY_hour_rank",
          title: "Please rank the hours of the market in terms of the amount of traffic to your booth",
          choices: [
            {
              value: "8",
              text: "8 AM"
            },
            {
              value: "9",
              text: "9 AM"
            },
            {
              value: "10",
              text: "10 AM"
            },
            {
              value: "11",
              text: "11 AM"
            },
            {
              value: "12",
              text: "12 PM"
            }
          ]
        },
        {
          type: "boolean",
          name: "CY_hours_amend_spring",
          title: "If you could amend the hours of the Spring market, would you?"
        },
        {
          type: "boolean",
          name: "CY_hours_amend_fall",
          startWithNewLine: false,
          title: "If you could amend the hours of the Fall market, would you?"
        },
        {
          type: "text",
          name: "CY_hours_amend_spring_suggest",
          visibleIf: "{CY_hours_amend_spring} = true",
          title: "What hours would you suggest for Spring?",
          description: "Format answer as 8a-1p, or use 24 hour time 8-13",
          validators: [
            {
              type: "regex",
              text: "Format answer as 8a-1p, or use 24 hour time 8-13",
              regex: "[0-9apAPmM]{1,4}-[0-9apAPmM]{1,4}"
            }
          ]
        },
        {
          type: "text",
          name: "CY_hours_amend_fall_suggest",
          visibleIf: "{CY_hours_amend_fall} = true",
          startWithNewLine: false,
          title: "What hours would you suggest for Fall?",
          description: "Please format answer as 8a-1p, or use 24 hour time 8-13",
          validators: [
            {
              type: "regex",
              text: "Format answer as 8a-1p, or use 24 hour time 8-13",
              regex: "[0-9apAPmM]{1,4}-[0-9apAPmM]{1,4}"
            }
          ]
        },
        {
          type: "boolean",
          name: "NY_fee_change_spring",
          title: "Would you be amenable to an increase in vendor fees for the Spring Market to fund promotional efforts?"
        },
        {
          type: "boolean",
          name: "NY_fee_change_fall",
          startWithNewLine: false,
          title: "Would you be amenable to an increase in vendor fees for the Fall Market to fund promotional efforts?"
        },
        {
          type: "multipletext",
          name: "NY_fee_suggest_spring",
          visibleIf: "{NY_fee_change_spring} = true",
          title: "What is a reasonable Spring season vending fee that includes additional funding for promotional efforts (considering that the current vendor fee is $200 for the season or $20 per week)?",
          items: [
            {
              name: "Per season",
              inputType: "number",
              title: "Per season ($)",
              validators: [
                {
                  type: "numeric",
                  text: "Value must be a number",
                  minValue: 0
                }
              ]
            },
            {
              name: "Per week",
              inputType: "number",
              title: "Per week ($)",
              validators: [
                {
                  type: "numeric",
                  text: "Value must be a number",
                  minValue: 0
                }
              ]
            }
          ]
        },
        {
          type: "multipletext",
          name: "NY_fee_suggest_fall",
          visibleIf: "{NY_fee_change_fall} = true",
          startWithNewLine: false,
          title: "What is a reasonable Fall season vending fee that includes additional funding for promotional efforts (considering that the current vendor fee is $150 for the season or $20 per week)?",
          items: [
            {
              name: "Per season",
              inputType: "number",
              title: "Per season ($)",
              validators: [
                {
                  type: "numeric",
                  text: "Value must be a number",
                  minValue: 0
                }
              ]
            },
            {
              name: "Per week",
              inputType: "number",
              title: "Per week ($)",
              validators: [
                {
                  type: "numeric",
                  text: "Value must be a number",
                  minValue: 0
                }
              ]
            }
          ]
        }
      ]
    },
    {
      name: "2024_freeform",
      title: "2024 Season Freeform",
      elements: [
        {
          type: "comment",
          name: "CY_highlights",
          title: "What did you appreciate most about the 2024 season?"
        },
        {
          type: "comment",
          name: "CY_feedback",
          title: "If you could change anything about the 2024 season, what would it be?"
        }
      ]
    },
    {
      name: "2025_season",
      title: "2025 Season",
      description: "We've been brainstorming some marketing ideas and want to get your input",
      elements: [
        {
          type: "ranking",
          name: "NY_idea_rank",
          title: "Please rank the following marketing ideas in order of your sense of their importance & efficacy\n",
          choices: [
            {
              value: "email",
              text: "Email newsletter with info about vendors and seasonal offerings"
            },
            {
              value: "flyer",
              text: "Flyer distribution"
            },
            {
              value: "tshirts",
              text: "Harmony Crossing Farmer's Market t-shirt for vendors"
            },
            {
              value: "musicians",
              text: "Invite musical guests to play during the market"
            },
            {
              value: "boat",
              text: "Pop-up events: A promotional boat ride on Lake Oconee, float in local parade, send a representative for HCFM to other Markets"
            },
            {
              value: "socialmedia",
              text: "Coordinate social media campaigns to promote turnout at the market"
            }
          ]
        },
        {
          type: "comment",
          name: "NY_marketing_freeform",
          title: "Do you have any ideas for marketing that you'd like to contribute, or would you like to elaborate on how best to implement any of the ideas above?"
        },
        {
          type: "boolean",
          name: "NY_marketing_assist",
          title: "Are you interested in assisting with marketing efforts?"
        },
        {
          type: "boolean",
          name: "NY_decision_making",
          title: "Are you interested in helping to make decisions about future markets?"
        }
      ]
    },
    {
      name: "contact",
      visibleIf: "{NY_marketing_assist} = true or {NY_decision_making} = true",
      title: "Contact Info",
      elements: [
        {
          type: "text",
          name: "contact_email",
          title: "Email Address",
          inputType: "email"
        },
        {
          type: "text",
          name: "contact_email_validate",
          visibleIf: "{contact_email} notempty",
          title: "Email Address (Again for Validation)",
          isRequired: true,
          validators: [
            {
              type: "expression",
              text: "Email addresses must match",
              expression: "{contact_email} =={contact_email_validate}"
            }
          ],
          inputType: "email"
        },
        {
          type: "text",
          name: "question4",
          title: "Phone Number",
          inputType: "tel",
          autocomplete: "tel"
        }
      ]
    }
  ]
}

Expected behavior
The results display, or are at the least, downloadable.
Screenshots
image

Please complete the following information:

  • Browser: Chrome
  • Browser version: 131.0.6778.205 (Official Build) (arm64)
  • JS framework/library: Wordpress Plugin
  • SurveyJS version: 1.12.4
  • Device: Macbook Pro 2021

Additional context
Running Wordpress 6.7.1

@yogat3ch
Copy link
Author

Hi @JaneSjs ,
We've already run the survey mentioned above to a large group of people and people have already filled it out. I need some support from survey js to figure out how to recover the data from this survey since the results page seems to fail in rendering. I've looked at the pricing page and while I really like the fact that Survey JS offers one time payment tiers, the starting tier at $500 isn't feasible for me as a small business making less than $8000 / year in total revenue (I haven't subtracted the expenses for the previous year yet).

Do y'all offer more granular pricing tiers per service, like a monthly support subscription, or a fee per ticket basis that I could pay to get support on this issue?

I really appreciate the flexibility of SurveyJS and want to continue using it, but I feel like i took for granted it would capture all the data for this survey and display it, and now the data is on the verge of being lost with less than two months before I have to present the results of this survey to stakeholders. I feel like if I am unable to get support from Survey JS on how to recover the data, I need to move quickly to another survey platform and re-run the survey. It will be a significant inconvenience to me and everyone that participated in the survey already, but I'm not sure what else to do.

@JaneSjs
Copy link
Contributor

JaneSjs commented Jan 1, 2025

Hi @yogat3ch,
Thank you for your inquiry. I forwarded this issue to our developers for further investigation. We'll try to reproduce the issue on our end and check to see if survey results are saved to a database and can be visualized at the Results page. We'll let you know once we have any news to share.

Please stay tuned.

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Jan 1, 2025
@JaneSjs
Copy link
Contributor

JaneSjs commented Jan 1, 2025

@yogat3ch, regarding the SurveyJS subscription plan: if you wish to run surveys and collect user responses using SurveyJS Forms, you can use our Essential plan which includes access to the SurveyJS Form Library. The Form Library is available for free for everyone. To collect user responses, you'll need to integrate Form Library within your own infrastructure and connect it with a backend storage to save user responses.

If you're looking for a streamlined way to visualize survey results, our PRO plan includes the SurveyJS Dashboard for data visualization. Alternatively, you're free to display user responses in any format you prefer, such as a plain data table.

Let me know if you have additional questions.

@yogat3ch
Copy link
Author

yogat3ch commented Jan 1, 2025

Hi @yogat3ch, Thank you for your inquiry. I forwarded this issue to our developers for further investigation. We'll try to reproduce the issue on our end and check to see if survey results are saved to a database and can be visualized at the Results page. We'll let you know once we have any news to share.

Please stay tuned.

Thanks @JaneSjs for forwarding along the issue to @dmitry-kurmanov and the development team. For what it's worth, the Results page on the Wordpress plugin typically shows something like this:
image
Even when there aren't responses, it will show the table with no rows in it. There is definitely some kind of bug in the WP Plugin when attempting to display the results of the Harmony Crossing survey above.

I know how to run SQL queries against the Wordpress database on Lightsail, so a minimum viable and more rapid solution for this could be some info on what table in the Wordpress database SurveyJS saves the results of the surveys. I could just pull that data out as is. This would avoid having to solve whatever the issue is with Datatable or whatever table library the plugin is using and why it won't display the results data of this particular survey.

Any guidance on where I can go about finding documentation, or the code for the Wordpress plugin, that covers writing the results to the database?

Subscription Plan

With regards to the subscription plans, what I'm trying to get across is that the SurveyJS tiers incline too steeply for most folks, myself included. Going from free to 500€ is a drastic step in price. It think it would super helpful for users of SurveyJS and likely for the company's revenue stream is y'all offered a less expensive tier, that is perhaps a monthly recurring subscription, that just includes support for developers using the Wordpress plugin or the features of the Essential tier without all the additional features of the Basic tier.

Thank you for the responses to my inquiries!

@dmitry-kurmanov
Copy link
Member

Unfortunately, I can't manage to reproduce the problem with the provided JSON. The issue might be with the exact 1.12.4 version. I would recommend to update to the latest 1.12.17 version.

Thanks,
Dmitry
SurveyJS Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users
Projects
None yet
Development

No branches or pull requests

3 participants