Tuesday, October 26, 2010

Extra white space when executing a UDF in an input field

Well basically I have a UDF defined in my ApplicationHelper.cfm in my ColdBox app that formats phone numbers to a requested format. What use to drive me crazy is that when I ran it inside an input field like so:

I would get the following:

It appears that this happens because I did not have my output attribute set on my cffunction which defaults to true. Once I set it to false I no longer received that annoying extra white space.



Which Output the following ...

No comments:

Post a Comment