Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [therelief] How do I add a form field?

Quote Reply
Re: [therelief] How do I add a form field? In reply to
The 'column name' is what the field is saved as in the db. You probably want that to be 'Phone' or 'phone'. Because it's a phone number, the field type will need to be a number type. INT (short for integer) will work. The form regex (short for regular expressions) is a validate field. It will limit the kind of data a user can add to the field.

example:

^\d{3}\d{3}\d{4}

^ - means at the begining of the input

\d - means search for a number

{3} - means 3 numbers {4} for four

So it only allows that type of input from a user, or it will return an error. The other fields are more for advanced users and you can leave blank for now.

This just creates the field for the phone number to be stored. You have to add a phone number input to the add.html template: <input type=text name="the name of your field" value=default value> etc.

Hope this helps,

- Jonathan
Subject Author Views Date
Thread How do I add a form field? therelief 16245 Sep 24, 2006, 6:08 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15269 Sep 24, 2006, 8:04 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15349 Sep 24, 2006, 8:16 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15243 Sep 24, 2006, 8:32 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15230 Sep 24, 2006, 8:41 PM
Thread Re: [therelief] How do I add a form field?
therelief 15293 Sep 24, 2006, 8:44 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15339 Sep 24, 2006, 10:14 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15294 Sep 24, 2006, 10:56 PM
Thread Re: [therelief] How do I add a form field?
SandraR 15235 Sep 25, 2006, 5:05 AM
Thread Re: [SandraR] How do I add a form field?
therelief 15199 Sep 25, 2006, 7:49 AM
Thread Re: [therelief] How do I add a form field?
SandraR 15230 Sep 25, 2006, 7:58 AM
Thread Re: [SandraR] How do I add a form field?
therelief 15210 Sep 25, 2006, 8:11 AM
Post Re: [therelief] How do I add a form field?
therelief 15169 Sep 25, 2006, 8:20 AM
Thread Re: [therelief] How do I add a form field?
jdgamble 15273 Sep 25, 2006, 8:35 AM
Thread Re: [jdgamble] How do I add a form field?
therelief 15291 Sep 25, 2006, 8:41 AM
Post Re: [therelief] How do I add a form field?
jdgamble 15151 Sep 25, 2006, 9:15 AM
Thread Re: [therelief] How do I add a form field?
therelief 15259 Sep 25, 2006, 9:26 AM
Thread Re: [therelief] How do I add a form field?
jdgamble 15256 Sep 25, 2006, 12:02 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15423 Sep 25, 2006, 12:16 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15260 Sep 26, 2006, 12:08 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15353 Sep 26, 2006, 12:14 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15249 Sep 26, 2006, 2:05 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15249 Sep 26, 2006, 4:48 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15194 Sep 26, 2006, 5:36 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15231 Sep 26, 2006, 6:13 PM
Thread Re: [therelief] How do I add a form field?
therelief 19524 Sep 26, 2006, 6:58 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19522 Sep 26, 2006, 7:38 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19850 Sep 26, 2006, 7:49 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19543 Sep 26, 2006, 8:57 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19508 Sep 26, 2006, 9:05 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19493 Sep 26, 2006, 10:27 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19475 Sep 26, 2006, 11:05 PM
Thread Re: [therelief] How do I add a form field?
SandraR 19423 Sep 27, 2006, 4:38 AM
Thread Re: [SandraR] How do I add a form field?
therelief 19500 Sep 27, 2006, 8:52 AM
Thread Re: [therelief] How do I add a form field?
therelief 19490 Sep 27, 2006, 9:19 AM
Thread Re: [therelief] How do I add a form field?
SandraR 19480 Sep 27, 2006, 10:16 AM
Thread Re: [SandraR] How do I add a form field?
therelief 19424 Sep 27, 2006, 10:24 AM
Thread Re: [therelief] How do I add a form field?
SandraR 19483 Sep 27, 2006, 2:55 PM
Thread Re: [SandraR] How do I add a form field?
therelief 19405 Sep 27, 2006, 3:00 PM
Thread Re: [therelief] How do I add a form field?
therelief 19497 Sep 27, 2006, 3:03 PM
Post Re: [therelief] How do I add a form field?
therelief 19437 Sep 27, 2006, 3:06 PM
Thread Re: [SandraR] How do I add a form field?
SandraR 19394 Sep 27, 2006, 3:06 PM
Thread Re: [SandraR] How do I add a form field?
SandraR 19465 Sep 27, 2006, 3:09 PM
Thread Re: [SandraR] How do I add a form field?
therelief 19424 Sep 27, 2006, 3:28 PM
Thread Re: [therelief] How do I add a form field?
therelief 19411 Sep 27, 2006, 3:33 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19433 Sep 27, 2006, 5:16 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19390 Sep 27, 2006, 5:33 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19453 Sep 27, 2006, 5:44 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19612 Sep 27, 2006, 5:44 PM
Post Re: [therelief] How do I add a form field?
therelief 2319 Sep 27, 2006, 5:53 PM
Post Post deleted by therelief
therelief 19477 Sep 26, 2006, 7:00 PM