Page 1 of 1

form builder

Posted: Thu Jun 18, 2009 10:41 am
by jubber
i am using the module form builder which is working fine but i was wondering how can add a feild which is just for numbers any help please if it had validation would be even better

Re: form builder

Posted: Thu Jun 18, 2009 2:13 pm
by Peciura
Field Type:     Text Input
Field Validation:   Numeric
To clear spaces in field you can add

Code: Select all

onblur=' this.value=this.value.replace(/(^\s*)|\s*|(\s*$)/g, "") ; '
to "Javascript for field:"

Re: form builder

Posted: Thu Jun 18, 2009 2:14 pm
by jubber
ill try that now thank you

Re: form builder

Posted: Thu Jun 18, 2009 3:30 pm
by tyman00
You could look into using a Jquery validator as well