Form Tools
Validate on Custom field - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8)
+--- Forum: Form Validation: JS + PHP (https://forums.formtools.org/forumdisplay.php?fid=18)
+--- Thread: Validate on Custom field (/showthread.php?tid=5324)



Validate on Custom field - r.brandao - Sep 2nd, 2015

I need to create a field, the field should be inserted only a value between 18 and 70 , I do not know where to do it. Tried putting range = 18-70 in the Custom Function , the custom filed but did not work

Ty


RE: Validate on Custom field - r.brandao - Sep 3rd, 2015

Ok i think the code for my question is...

case "18_70_only":
if (form[fieldName].value && form[fieldName].value.match(/range=18-70/))
{
if (!rsv.processError(form[fieldName], errorMessage))
return false;
}
break;

But, were a put this? in the rsv.js? And how to use in a custum field? ty


RE: Validate on Custom field - r.brandao - Jan 28th, 2016

Lets go guys Up... any body help us?