I am having problem with a numeric field. This field should be numbers only, and 11 in lenth.But it is not mandatory field,and "could" be left empty.
If i set the field as a char, i can set the length and it defaults to empty, but I don't know how to make a constraint to numeric only. If i set the field as int, i can set the length but it defaults to 0, which is not correct as the field is a serial number and 0 is not a correct value(it should be empty). I have made a custom module that inherits from the main module and loads correcty
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/13/13, 7:02 AM|
|Seen: 796 times|
|Last updated: 3/16/15, 8:10 AM|