Creating a multi-choice poll with a conditional "tell me more" text box

Pinned Featured

Comments

9 comments

  • Avatar
    Wes Barnes

    We are interested in a similar function to ask a guide participant for additional feedback if they select "No" in the Yes/No poll at the end of our guide to gauge if it was helpful or not.  We want to have a textbox display when No was selected to provide comments.  I am curious if this could work similarly and where the comments are stored in the guide?

    1
    Comment actions Permalink
  • Avatar
    Angus Yang

    Hey Wes Barnes, it should work if you update the custom code to read "No" instead of "Other" but if the poll is Yes/No, I think it could be useful to have an open feedback text box regardless of if they select Yes or No to get more comprehensive user feedback.

    1
    Comment actions Permalink
  • Avatar
    Wes Barnes

    Good point.  We might as well just ask for feedback anytime someone wants to give some. 

    1
    Comment actions Permalink
  • Avatar
    Frederik Raudies

    Is there a way to do the same for CSAT scores (number blocks from 1-5) e.g. conditionally show the text box in case number 1 or 2 are selected? 

    0
    Comment actions Permalink
  • Avatar
    Angus Yang

    Frederik Raudies I imagine that's possible, but as a disclaimer, we don't provide direct support for these custom code snippets. I believe it is related to the lines that mention "Other", so you can probably tweak it to reference 1 or 2. (I'm definitely not a technical expert so take my advice with a grain of salt).

    1
    Comment actions Permalink
  • Avatar
    Frederik Raudies

    Hi Angus Yang in the end we solved it with this which works pretty well!

    var pollTitle = pendo.dom('div[class*="_pendo-open-text-poll-question"]')[0];
    var pollTextarea = pendo.dom('textarea[class*="_pendo-open-text-poll-input"]')[0];if(!pendo.designerEnabled) {
    pollTitle.style.display = "none";
    pollTextarea.style.display = "none";
    }pendo.dom('input.pendo-radio').on('click', '.pendo-radio', function(e) {
    var value = e.target.value
    if (value == 1 || value == 2) {
    pollTitle.style.display = "block";
    pollTextarea.style.display = "block";
    } else {
    pollTitle.style.display = "none";
    pollTextarea.style.display = "none";
    }
    });
    3
    Comment actions Permalink
  • Avatar
    Angus Yang

    That's awesome to hear Frederik Raudies, appreciate you sharing your solution! I'm sure this will be helpful for others trying to accomplish something similar :) 

     

    1
    Comment actions Permalink
  • Avatar
    brandon

    I haven't had any luck combining this thread's workflow with this workflow. I can get it to be multi-select, and I can hide the Other text entry box. But the Guide Metrics for the multi-select options aren't coming through.

    The data should be coming through like displayed below. But mine is blank. 

    Here's what my broken implementation looks like so far, 2MB upload limit; sorry for the low quality:

     

     

    0
    Comment actions Permalink
  • Avatar
    Nikki Murray

    To get around the lack of logic support, we typically reword our options to account for this. For example, the "Other" option becomes "Other (fill in below)", and reduce the open text field's height.

    1
    Comment actions Permalink

Please sign in to leave a comment.