This content has been marked as final. Show 5 replies
what type of form field is RecordID?
if it is a text/hidden field - it will ALWAYS be defined in the form.
hence the <cfelse> part of your code will never execute...
this is the way my form is set up:
<form action="Action.cfm" method="post" name="news" id="news" onsubmit="saveIt()">
<input type="hidden" name="FieldList" value="#FormFieldList#">
<input type="hidden" name="RecordID" value="#URL.RecordID#">
<input type="hidden" name="ID" value="#URL.RecordID#">
All my form fields are here
It should work.
I troubleshoot if/else problems like this:
I used ths:
Did I write this correctly or go after the proper variable?
It just posted the title on a blank page. The title was from the form I am posting with. So it seems to be getting the variables to this point, it is something in my insert. Right?
Thanks for the help.
I figured it out. my partner was messing with the db and changed the tales. so it wasn't putting info into the db. Thank you for all your help. I am sorry, it was something so obvious.