xoops forums

deka87

Friend of XOOPS
Posted on: 2009/6/23 16:59
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#1

Profile module fields

Hi, I need one of the fields in the regisration form to be numerals only. How do I do so? I thought about changing the field type thru the phpmyadmin but I am not sure how to notify user that he's wrong entering letters in that field when he does so?
Mind anchors

ghia

Community Support Member
Posted on: 2009/6/23 19:53
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#2

Re: Profile module fields

There is only a general textbox field. There were once some preparations for an integer field (look up PROFILE_AM_INT), but the actual choice didn't make it in the code.
If there are limited choices you could use a dropdown.

deka87

Friend of XOOPS
Posted on: 2009/6/23 20:06
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#3

Re: Profile module fields

nah it goes from 0.001 up to 3 or so... dang
Mind anchors