Have an idea?

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

BYO calling summed price

Dear All,

I would like to use total price from the  "BYO - summed price" part of the ACBC after the conjoint in a separate question.
What function calls the total price ?

Would be very grateful for any help - can't find it in a manual.
Thank you!
asked May 16, 2019 by robson Bronze (790 points)
I'm not aware of a built-in function for that, but it could still be done with some customization.  Is the other question on a different page than the BYO?
Hi Zachary,

yes,  other question is on the different page.


1 Answer

+1 vote
In that case, what we'll want to do is add another question to the same page as the BYO to store the total price.  I did this with a free format question.  I gave the free format a hidden, text variable named "_price" and set the free format's HTML to this:

<input name="[% QuestionName() %]_price" id="[% QuestionName() %]_price" type="hidden" value=""/>

$(document).on('change', 'select', SSI_CustomGraphicalRadiobox);

function SSI_CustomGraphicalRadiobox() {
    $('#[% QuestionName() %]_price').val($('.total_price .acbc_byo_price_box').val());

Then the price can be printed out on later pages with Sawtooth Script referencing the name of the free format question, like this:

[% FreeFormatQ_price %]
answered May 17, 2019 by Zachary Platinum Sawtooth Software, Inc. (171,950 points)
Thank you very much Zachary!
Respect to your knowledge!