Have an idea?

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

% sign shows JUST for displayed cells

Hi.  This works really well - both options.  But here's the thing.  I have a grid.  8 rows, 2 columns.  All numeric.  One of the options in the second column is blanked out.  Easy enough - I just use css to display that cell as "none" and the input box disappears.  BUT the % sign is still there.  How do I fix this?
related to an answer for: % sign after constant sum question
asked Oct 1, 2020 by Marion Silver (5,240 points)

1 Answer

+1 vote
Please use below code:
I am assuming we need to hide percentage sign from Row 3 Col 2. You can change ".grid_r3.grid_c2 .pcntg" in the css as per your requirement.

    $(".numeric_input,.total").after("<span class='pcntg'> %</span>");
.grid_r3.grid_c2 .pcntg{
answered Oct 1, 2020 by Rahul Mittal Gold (11,860 points)
edited Oct 1, 2020 by Rahul Mittal
Perfect!  Thanks, Rahul!