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
In Reply To:
Um, I have no clue as to what you just said. I am not a coder so please don't assume that I know what these codes and stuff you refer to mean. I don't, so your conversation about those things might as well be in Greek or Cantonese, LOL.[/quote]

All you have to do is create two new fields, just like you did for the phone (if you prefere this method) for First Name and Last Name like so:

Quote:


Column Name: First_Name
Column Type: VARCHAR
Column Index: None
Column Size: 255
Column Values:
Not Null: Yes
Default:
Form Display: First Name
Form Type: Text
Form Size: 20
Form Names:
Form Values:
Form Save Location:
File Save URL:
File Save Method: default
File Maximum Size:
Form Regex:
Search Weight: 1


Do the EXACT same thing for last name. Remember you add a column under Database -> Editor -> Table -> Properties -> (scroll down) -> Add Column

Then edit your template "include_form.html" under Build->User Templates ... JUST LIKE YOU DID for the phone number adding two new fields: for first name and last name.

to be more specific... replace this:

Code:
<div class="row clear">
<label for="Contact_Name" class="name">Contact Name:</label>
<div class="value">
<input type="text" id="Contact_Name" name="Contact_Name" value="<%if Contact_Name%><%escape_html Contact_Name%><%endif%>" class="text" />
</div>
</div>


with this:

Code:

<div class="row clear">
<label for="First_Name" class="name">First Name:</label>
<div class="value">
<input type="text" id="First_Name" name="First_Name" value="<%if First_Name%><%escape_html First_Name%><%endif%>" class="text" />
</div>
</div>
<div class="row clear">
<label for="Last_Name" class="name">Last Name:</label>
<div class="value">
<input type="text" id="Last_Name" name="Last_Name" value="<%if Last_Name%><%escape_html Last_Name%><%endif%>" class="text" />
</div>
</div>


and that should store the first name, and last name as separate fields. Remember the not_null set to Yes is what requires the user to enter the field.

In Reply To:
That won't work because then I'd be back to square one with it not being in alignment with my header and the directory. Putting it in the table was the only way I got it to line up. Do you have another idea?[/quote]

I don't have time to go through the html right now, but I will get back to you on this...

Good luck with the first part,

- Jonathan
Subject Author Views Date
Thread How do I add a form field? therelief 16247 Sep 24, 2006, 6:08 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15272 Sep 24, 2006, 8:04 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15351 Sep 24, 2006, 8:16 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15246 Sep 24, 2006, 8:32 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15232 Sep 24, 2006, 8:41 PM
Thread Re: [therelief] How do I add a form field?
therelief 15295 Sep 24, 2006, 8:44 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15341 Sep 24, 2006, 10:14 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15296 Sep 24, 2006, 10:56 PM
Thread Re: [therelief] How do I add a form field?
SandraR 15237 Sep 25, 2006, 5:05 AM
Thread Re: [SandraR] How do I add a form field?
therelief 15201 Sep 25, 2006, 7:49 AM
Thread Re: [therelief] How do I add a form field?
SandraR 15232 Sep 25, 2006, 7:58 AM
Thread Re: [SandraR] How do I add a form field?
therelief 15212 Sep 25, 2006, 8:11 AM
Post Re: [therelief] How do I add a form field?
therelief 15171 Sep 25, 2006, 8:20 AM
Thread Re: [therelief] How do I add a form field?
jdgamble 15275 Sep 25, 2006, 8:35 AM
Thread Re: [jdgamble] How do I add a form field?
therelief 15293 Sep 25, 2006, 8:41 AM
Post Re: [therelief] How do I add a form field?
jdgamble 15153 Sep 25, 2006, 9:15 AM
Thread Re: [therelief] How do I add a form field?
therelief 15261 Sep 25, 2006, 9:26 AM
Thread Re: [therelief] How do I add a form field?
jdgamble 15258 Sep 25, 2006, 12:02 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15425 Sep 25, 2006, 12:16 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15263 Sep 26, 2006, 12:08 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15355 Sep 26, 2006, 12:14 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15251 Sep 26, 2006, 2:05 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15251 Sep 26, 2006, 4:48 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 15196 Sep 26, 2006, 5:36 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 15233 Sep 26, 2006, 6:13 PM
Thread Re: [therelief] How do I add a form field?
therelief 19525 Sep 26, 2006, 6:58 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19523 Sep 26, 2006, 7:38 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19852 Sep 26, 2006, 7:49 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19544 Sep 26, 2006, 8:57 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19509 Sep 26, 2006, 9:05 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19494 Sep 26, 2006, 10:27 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19476 Sep 26, 2006, 11:05 PM
Thread Re: [therelief] How do I add a form field?
SandraR 19425 Sep 27, 2006, 4:38 AM
Thread Re: [SandraR] How do I add a form field?
therelief 19501 Sep 27, 2006, 8:52 AM
Thread Re: [therelief] How do I add a form field?
therelief 19491 Sep 27, 2006, 9:19 AM
Thread Re: [therelief] How do I add a form field?
SandraR 19481 Sep 27, 2006, 10:16 AM
Thread Re: [SandraR] How do I add a form field?
therelief 19425 Sep 27, 2006, 10:24 AM
Thread Re: [therelief] How do I add a form field?
SandraR 19484 Sep 27, 2006, 2:55 PM
Thread Re: [SandraR] How do I add a form field?
therelief 19406 Sep 27, 2006, 3:00 PM
Thread Re: [therelief] How do I add a form field?
therelief 19498 Sep 27, 2006, 3:03 PM
Post Re: [therelief] How do I add a form field?
therelief 19438 Sep 27, 2006, 3:06 PM
Thread Re: [SandraR] How do I add a form field?
SandraR 19395 Sep 27, 2006, 3:06 PM
Thread Re: [SandraR] How do I add a form field?
SandraR 19467 Sep 27, 2006, 3:09 PM
Thread Re: [SandraR] How do I add a form field?
therelief 19425 Sep 27, 2006, 3:28 PM
Thread Re: [therelief] How do I add a form field?
therelief 19412 Sep 27, 2006, 3:33 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19434 Sep 27, 2006, 5:16 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19391 Sep 27, 2006, 5:33 PM
Thread Re: [therelief] How do I add a form field?
jdgamble 19454 Sep 27, 2006, 5:44 PM
Thread Re: [jdgamble] How do I add a form field?
therelief 19613 Sep 27, 2006, 5:44 PM
Post Re: [therelief] How do I add a form field?
therelief 2321 Sep 27, 2006, 5:53 PM
Post Post deleted by therelief
therelief 19478 Sep 26, 2006, 7:00 PM