< ifdefined('form.submit')>
However, if you change the name of that form field, then this if statement gets messed up. My new way of detecting if a form has been submitted is to see if the form structure is not empty. There is always a form structure (or scope), however, if it is empty, then no form has been submitted:
<cfif not StructIsEmpty(form)>
I did this because I am working on a widget that will display a number of choices and allow the user to add an answer to the list, like this:
No comments:
Post a Comment