Have an idea?

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

How can I add a suffix (e.g. $) to a numeric question in Discover?

I would like to add a suffix including currency to a numeric question. Can anybody tell me if and how this can be done via Javascript in Discover?

Any help is greatly appreciated,

Cheers
asked Jan 16, 2018 by Hans
To clarify, you want to add some text after the input field?
Yes, that's the idea.
Following code can be used:

<script>
    $(document).ready(function() {
        $("#Q5").after("€");
    });
</script>
So you've already got a sufficient answer then?
ALREADY SOLVED THIS - THANK YOU!

Hello Zachary,

I try to implement this code in my questionnaire as well but I can't get it working.

I'm not sure how to implement it. In another forum post, I read that I have to insert it in the footnote. This doesn't work for me.

Maybe you can help me out?

Kind regards and thank you in advance!

Your solution to the original question

Please only use this to answer the original question. Otherwise please use comments.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

To avoid this verification in future, please log in or register.
...