Answered
isdefined issue
Hello,
I just upgraded from cf5 to cf8. I have some code that was working but now isn't. Specifically I have a cfoutput query="xxxxxxx" and within that tag I have some IFs that use isdefined().
Example:
#isdefined("form.unitprice_"&trim(getprods.id))#
This used to evaluate to true but now evaluates to false. If I put the evaluated value above the cfoutput it does evaluate to true.
Further I even tried putting the evaluated value inside the cfoutput but it still does not work.
Example:
#isdefined("form.unitprice_1026")#
With debugging set to on I can see the different form fields that are returned on the page and they are there. Furthermore If I dump form.fieldnames I get the list that includes the ones in question.
I also noticed that I can reference the form fields without the "form." but only within the cfoutput.
Very weird. Any help would be greatly appreciated.
Thank you.
I just upgraded from cf5 to cf8. I have some code that was working but now isn't. Specifically I have a cfoutput query="xxxxxxx" and within that tag I have some IFs that use isdefined().
Example:
#isdefined("form.unitprice_"&trim(getprods.id))#
This used to evaluate to true but now evaluates to false. If I put the evaluated value above the cfoutput it does evaluate to true.
Further I even tried putting the evaluated value inside the cfoutput but it still does not work.
Example:
#isdefined("form.unitprice_1026")#
With debugging set to on I can see the different form fields that are returned on the page and they are there. Furthermore If I dump form.fieldnames I get the list that includes the ones in question.
I also noticed that I can reference the form fields without the "form." but only within the cfoutput.
Very weird. Any help would be greatly appreciated.
Thank you.
