Have an idea?

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

change summed price font format depending on summed price

hi zachary

ist there a way to change the font format based on the number of the conditonal price?

example: instead of a summed price of 0.- i just want to hide the price - or put the font on „no colour“

summed price of zero can happen in a alternative specific design where the alternative choice a customer has is for free....
related to an answer for: Show price before discount
asked Feb 21, 2020 by anonymous

1 Answer

0 votes
Like in the linked post, you'll need to add this to the label of your summed price attribute:

<input type="hidden" id="summed"/>

(I recommend applying an internal label so this HTML doesn't show up in analysis.)

Then add this script to your Screener, Choice, and/or Calibration tasks:

        if (!$(this).text().replace(/[^1-9]/g, '').length) {
answered Feb 21, 2020 by Zachary Platinum Sawtooth Software, Inc. (171,950 points)