Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Numeric input in middle of question

I want to ask a question where the numerical input should be in the middle of the sentences. For example:

I would pay €[input] for this product/service

Is this possible?
asked Sep 5 by Marten (170 points)

1 Answer

0 votes
I am assuming your numerical input is coming from a previous question?

You would insert the following into your question script ...

I would pay €[%Q1%] for this product/service?

The above example assumes you are displaying the numerical response from Q1.

Is that what you are after?
answered Sep 5 by Paul Moon Platinum (77,000 points)
Hi Paul,

Thanks for the quick response.
That is not entirely what I am looking for.
I want to ask a question where the respondent has to insert a numerical input (an amount).
But in the "Numeric Question" I only see the option to show the question to the left or right of the input box.
Is it possible to have the input box in the middle of the sentence?
So, the question would look like:

I would pay €[...] for this product/service

Where [...] respresents the input box
Thanks for the quick response.
That is not entirely what I am looking for.
I want to ask a question where the respondent has to insert a numerical input (an amount).
But in the "Numeric Question" I only see the option to show the question to the left or right of the input box.
Is it possible to have the input box in the middle of the sentence?
So, the question would look like:

I would pay €[...] for this product/service

Where [...] respresents the input box
OK, that explanation is more clear.

Good question.

Can't say I've had that request before.

I'll chase up an answer for you.

The standard question settings don't allow it, so a slice of script will be necessary.

Stay tuned.
Marten, please find the solution below. As I mentioned earlier, it was likely to involve some CSS script.

Set the "Position question" to "Left". Insert the below CSS script in the footer of your numeric question. Change the question number and insert the script you want to appear after the numeric box (change "text after" to "for this product/service").
<script>
    $(document).ready(function() {
        $("#Q1").after("text after");
    });
</script>

Jay Rutherford, a regular forum participant, kindly passed this on to me. I believe he was assisted by Zachary Anderson from Sawtooth Software with this very same problem.

Thanks Jay and Zachary. Much appreciated.
...