Piping Partial Text: Can this be done?

over3520over3520 Orem, UTCommunity Member Qubie ✭

Piping Partial Text: Can this be done?

I have a question in which I only want to pipe in part of text from a previous answer. Here is my scenario:

Q: Please select a semester:

Fall (August to December)
Spring (January to May)
Summer (May to August)

I then want to use piped text in an email action to just say either Fall, Spring, or Summer and not have that extra info from the question. I would just use an embedded data through an API, but asking this question is a unique circumstance.

It seems like this could be done somehow with so kind of reverse embedded data setup, but I want to ask and take into account all considerations before I start experimenting

Best Answer

  • rondevrondev Guru ✭✭
    Accepted Answer

    @over3520 - You can use branch logic after this question and based on selected choice assign a value to new embedded data and use this new embedded data in email.

Answers

  • over3520over3520 Orem, UTCommunity Member Qubie ✭

    @rondev Thanks!

  • WaterSamplerWaterSampler Community Member Guru ✭✭

    Even easier is to recode your responses to what you want and then use the recoded value.

    Click on the gear to the left of your multiple choice question and select "Recode values..."
    Choose the Variable Naming box and enter the text you want to use in later.

    Then you can pipe the recoded value into your later questions, emails, etc.

  • over3520over3520 Orem, UTCommunity Member Qubie ✭

    @WaterSampler how do I get the variable name to show up? I can get the recode value (1,2,3) to pipe in but I cannot get Fall, Spring, Summer to pipe in? Thanks.

  • WaterSamplerWaterSampler Community Member Guru ✭✭

    @over3520
    1. did you check the 'Variable Naming' box and enter the text without the month range?
    2. after step 1, when you pipe text there is now a choice 'Selected Choices Recode'
    The Recode option does not show up unless you do step 1.

  • ShashiShashi IndiaCommunity Member Wizard ✭✭✭✭✭

    @WaterSampler said:
    Even easier is to recode your responses to what you want and then use the recoded value.

    Click on the gear to the left of your multiple choice question and select "Recode values..."
    Choose the Variable Naming box and enter the text you want to use in later.

    Then you can pipe the recoded value into your later questions, emails, etc.

    Qualtrics gives us the option to pipe in the recode value but not the recode variable name, and in recode value we cannot enter words.

  • WaterSamplerWaterSampler Community Member Guru ✭✭

    @Sashi
    True that the recode value is numeric, but if you choose Variable Naming you can type in what you want the variable names to be reported as.

    Example: I have a question asking for cardinal compass directions: North, Northeast, East, Southeast, etc. In my emailed report back to the user we want the directions abbreviated: N, NE, E, SE, etc. The variables are renamed and reported using piped values with Selected Choices Recode.

    If you cannot see this, maybe it is an optional feature. If it is optional, it is good to know that.

  • ShashiShashi IndiaCommunity Member Wizard ✭✭✭✭✭

    @WaterSampler said:
    @Sashi
    True that the recode value is numeric, but if you choose Variable Naming you can type in what you want the variable names to be reported as.

    Example: I have a question asking for cardinal compass directions: North, Northeast, East, Southeast, etc. In my emailed report back to the user we want the directions abbreviated: N, NE, E, SE, etc. The variables are renamed and reported using piped values with Selected Choices Recode.

    If you cannot see this, maybe it is an optional feature. If it is optional, it is good to know that.

    Can we pipe in the selected variable name ?

  • WaterSamplerWaterSampler Community Member Guru ✭✭

    Yes, you can use the original name (Selected Choices), the numeric value or the recoded value in the pipe.

  • WaterSamplerWaterSampler Community Member Guru ✭✭

    @Shashi
    You were correct. I had put some javascript to code the value into an embedded variable for email.
    Sorry for the confusion.

  • ShashiShashi IndiaCommunity Member Wizard ✭✭✭✭✭
    edited May 18

    @WaterSampler said:
    @Shashi
    You were correct. I had put some javascript to code the value into an embedded variable for email.
    Sorry for the confusion.

    Ahh its fine !

Sign In to Comment