Have an idea?

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

Autopopulate BYO based on Prohibitions

Hi Guys,

I have a tiered TV package study, where certain optional extras are available free with a paticular tv tier.

In order for this to be realistic the client has asked me to prohibit these extras from not appearing with the tv tier.

However, this has resulted in a situation where the BYO throws up potentially confusing errors to the respondent when they dont select these extras.

Is it possible for the BYO to autoselect a range of options from attribute further down the list?


asked Sep 24, 2018 by djtindall Bronze (600 points)
This could be done with some JavaScript, but I would need to know the specific attributes and values to be involved.  For which levels of which attribute do you want certain levels of other attributes to be automatically selected?

Additionally, are you using radio buttons or dropdowns in your BYO?
Hi Zachary,

Thanks for the response - Given the effort it would take I will just tell the client no.  :)
Would this be possible, using radio buttons in the BYO, assuming:
Attribute 3 Level 3 prohibited with Attribute 4 Level 2
Attribute 3 Level 3 prohibited with Attribute 5 Level 2
Attribute 3 Level 3 prohibited with Attribute 6 Levels 2 & 3

This is exactly the issue I was looking for but since there was no solution here I'm wondering if it is elsewhere.  I
What auto-selections would you want to happen?
Right, that would have been a useful piece of information.  If they choose Attribute 3 Level 3, it auto populates 4/1, 5/1 and 6/1.
How's this?

function SSI_CustomGraphicalRadiobox(graphicalObj, inputObj) {
    if (inputObj.id == '[% QuestionName() %]_3_3') {
        for (var i = 4; i <= 6; i++) {
            SSI_SetSelect('[% QuestionName() %]_' + i + '_1', true);
Perfect.  Thanks again Zachary!

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.