Tue Jan 7 19:39:37 MST 2020 Let’s talk about today than shall we? I’d like to think it would be a nice moment in time if we could simply get along with everything that happens in this life, yet I doubt it will. It’s a shame if you think about it. A real shame. But what are you going to do with any of it? No one knows exactly. So here we sit waiting for something better to come along, hoping for something to happen and allowing us to actually see what is real and what isn’t.
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.
Comments
Post a Comment