Have an idea?

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

Need help with Javascript to validate values between columns in a table

I have a table with numeric text boxes. They all populated with zeros. For any row, if a value greater than zero is put in one of the columns, the other columns for the same row must have a value greater than zero. The idea is to prevent respondents from making mistakes and give inconsistent answers.
Does anyone have a java code handy I can use to accomplish this?

asked Mar 6, 2012 by anonymous
retagged Nov 15, 2012 by Walter Williams
is this a grid or free format question?
Yes, it is a grid of numeric textboxes, but in free format.

1 Answer

0 votes
I can't think of a shorter way of doing it than hardcoding all the fields within bunch of if's. but then again it is too early in the morning for me to have waken up wholly :) Basically, SSI_GetValue and lots of if's should solve the problem.
answered Mar 6, 2012 by Bahadir Ozkurt Gold (16,980 points)