Have an idea?

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

List building subheaders

I am asking a question related to this...


The code
var subheaders = [
        [1, 3, '<b>Alpha</b>'],
        [4, 6, '<br><b>Bravo</b>'],
        [7, 9, '<br><b>Charlie</b>'],
        [10, 10, '<br><b>Delta</b>']
works for the predefined lists but I fail to see how the constructed list is supported. How can I dynamically create the ranges for the headers?
asked Mar 13, 2018 by WTW_cal Bronze (1,595 points)

1 Answer

0 votes
Best answer
When defining the numbers in Subheader's settings, use the positions from the parent list of the constructed list, not the constructed list itself.

For example, if you have this predefined list:

alpha 1
alpha 2
bravo 1
bravo 2

and this constructed list:


Even though the constructed list is in the opposite order of the parent list, you still want to use the same Subheaders settings as if you were using the predefined list:

var subheaders = [
    [1, 2, '<b>Alpha</b>'],
    [3, 4, '<b>Bravo</b>']
answered Mar 13, 2018 by Zachary Platinum Sawtooth Software, Inc. (181,275 points)
selected Mar 13, 2018 by WTW_cal