Quote:
Originally Posted by Michigan Morels
Questions on number and dollar formating.
Problem 1. In a single line text field I put this in the Regular Expression:
However when I try to submit a form I get the invalid format error.
See attach. Attachment 95542
I'm using vB 3.7.4 and Easy Forms 3.1
Question 2. Is it possible to force number in text field so that both (5) and (5.00) would show as 5.00 (with decimal) and not 5 (without decimal), on submitted post? or make them both a dollar number ($5.00)
I can live without the dollar format if too difficult, but would like the other options.
|
Use
Use php code at Form hook: Form Start:
PHP Code:
$q[8] = $vbulletin->input->clean_gpc('p', 8, TYPE_NUM);
$q[8] = vb_number_format($q[8], 2);
$_POST['8'] = $q[8];
replace 8 with appropriate question hash