JohnLucania
asked on
Parameter 1 of function DollarFormat; must be a number
I have:
<B>Gift Amount</B> <CFPARAM name="form.Amount" default=0>
<CFIF session.myTransactionMode eq "addPayment" AND session.myPaymentID neq "">
$<cfinput name="myAmount" value="#Right(DollarFOrmat (form.Amou nt),Len(Do llarFOrmat (form.Amou nt))-1)#" tabindex="#myTab#"
type="text" id="myAmount" size="10" class=notetext2 validate="regular_expressi on" disabled
pattern="^\d+\.?\d{1,2}?$" message="Please double-check the Amount you entered!">
<INPUT type=hidden name=Amount value="#Right(DollarFOrmat (form.Amou nt),Len(Do llarFOrmat (form.Amou nt))-1)#">
<CFELSE>
$<cfinput name="Amount" value="#Right(DollarFOrmat (form.Amou nt),Len(Do llarFOrmat (form.Amou nt))-1)#" tabindex="#myTab#" type="text" id="Amount" size="10" class=notetext2 validate="regular_expressi on"
pattern="^\d+\.?\d{1,2}?$" message="Please double-check the Amount you entered!">
</CFIF>
and I am getting:
Parameter 1 of function DollarFormat which is now 3,000.00 must be a number
The error occurred in line 41
39 : <INPUT type=hidden name=Amount value="#Right(DollarFOrmat (form.Amou nt),Len(Do llarFOrmat (form.Amou nt))-1)#">
40 : <CFELSE>
41 : $<cfinput name="Amount" value="#Right(DollarFOrmat (form.Amou nt),Len(Do llarFOrmat (form.Amou nt))-1)#" tabindex="#myTab#"
42 : type="text" id="Amount" size="10" class=notetext2 validate="regular_expressi on"
43 : pattern="^\d+\.?\d{1,2}?$" message="Please double-check the Amount you entered!"
What is wrong with this?
<B>Gift Amount</B> <CFPARAM name="form.Amount" default=0>
<CFIF session.myTransactionMode eq "addPayment" AND session.myPaymentID neq "">
$<cfinput name="myAmount" value="#Right(DollarFOrmat
type="text" id="myAmount" size="10" class=notetext2 validate="regular_expressi
pattern="^\d+\.?\d{1,2}?$"
<INPUT type=hidden name=Amount value="#Right(DollarFOrmat
<CFELSE>
$<cfinput name="Amount" value="#Right(DollarFOrmat
pattern="^\d+\.?\d{1,2}?$"
</CFIF>
and I am getting:
Parameter 1 of function DollarFormat which is now 3,000.00 must be a number
The error occurred in line 41
39 : <INPUT type=hidden name=Amount value="#Right(DollarFOrmat
40 : <CFELSE>
41 : $<cfinput name="Amount" value="#Right(DollarFOrmat
42 : type="text" id="Amount" size="10" class=notetext2 validate="regular_expressi
43 : pattern="^\d+\.?\d{1,2}?$"
What is wrong with this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great!!!!
What is it you are trying to do?