I was working on something today... more of a proof of concept. I had a dynamic form from which the user would fill it out and click submit. They would then see if they filled it out correctly.
Well, I got a little stumped for a second or two regarding it... how would I check if the question was processed. Usually I do:
IsDefined("form.fieldname")
But with my question looking like:
answer_#q.question_id#
I couldn't quite do that. CF kept telling me it hated me. (Honest, those were its exact words.)
So I had to figure something out. At first I thought I'd have to use Evaluate... but well would you know that would be the wrong course of action? Ran across a website that told me to do this:
form["answer_#q.question_id#"]
Would you know that it worked? Oh yes it sure did work. So that made my day.
No comments:
Post a Comment