I don't think the error is coming from another text box as when I remove the
{$RefNum}, the error goes away.
the code for the text box looks like this:
<asp:TextBox runat="server" id="ff1{$Pos}"
__designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID\
',ddwrt:EscapeDelims(string(@ID)),'@Title')}">{$RefNum}<SharePoint:FieldDescript\
ion
runat="server" id="ff1description{$Pos}" FieldName="Title"
ControlMode="Edit" /></asp:TextBox>