For the record, somebody helped me find a solution to this using localStorage in Javascript.
@TomG - thanks for looking. I may not have explained well. I have not used JS to set the choices. So the first question has `${e://Field/Q8_IND_C6ii_A_q1}` (which is pulled from a contact list via an embedded data field). Some of these questions will have been answered previously (as it is a repeat survey) so I'm not sure if a check as you suggest would work. The answer above is pulled through to later questions using `${q://QID30/ChoiceTextEntryValue/1/1}` (I do have some JS but that is just working out some ratios and making boxes read only and as far as I can see does not affect this issue.)
Great, thanks again Jeremy.
Thank you so much Jeremy. I can't believe I missed that "TEXT" bit. I haven't yet worked out the logic or found a reference for how to refer to different sorts of questions so was mostly winging out. For most of the questions the ID and Name was the same, but I had missed that that wasn't the case for that question. As a follow-on, if it's not too cheeky, do you know if it's possible to trigger the calculation once numbers have been entered? As it stands you have to click somewhere or tab. Thanks again.
@Akdashboard - thanks, have attached a QSF file here, hope that's what you meant. So only one question, eg. for Q1 the validation needs to check that A+B<=C (obviously then just the same for Q2, Q3 and Q4 columns). Possible snag is that I have already added custom validation to check what's entered in the boxes (using regular expressions). Do shout if anything is unclear.
@Akdashboard - your offer of help would be welcome. My question is a matrix table with text entry boxes. It has 4 columns and 3 rows and for each column I want to check the top box + middle box <= bottom box. The problem I face now is that I already have some custom validation on this question and there doesn't seem to be a way to add a second type of custom validation?
@Akdashboard - thanks very much for that. I'll check it out in the next day or two and let you know if I get stuck.
Thanks for your response. Yes, I should have explained. I have a survey involving many boxes into which respondents will enter numbers and I need to do a certain amount of validation. For example, some questions will have three boxes and I need to check the value in the third box is less than or equal to the sum of the first two (in others there might be 4 boxes which need checking). Does that clarify? If there is an easier approach, I'm all ears.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.