Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Adding Custom Fields

Quote Reply
Adding Custom Fields
 


Newbie Alert Question...

I'm adding a new field with the following values for a user to enter the amount of pictures he owns, but all I get is Unknown Tag in the add page:

Column Name Nop
Column Type TEXT
Form Display Nop
Form Type SELECT
Form Names
5+
10+
20+
30+
40+
50+

Form Values
5+
10+
20+
30+
40+
50+
----

Am I doing something wrong here?

Thanks for any advice.



Quote Reply
Re: Adding Custom Fields In reply to
Look at the way Links generates the category drop down list.

Without seeing your actualy html codes, I couldn't see why it's not working for you.

Standard select lists will send BACK a value links can process. You'd need to set up "global" routine to create the list-box, with the user/links record value "selected". Again, check out the category generation code for how to layer the HTML.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: Adding Custom Fields In reply to
Thanks Pugdog,

I think I see were I'm going wrong, a dropdown on the add page is *not* auto generated without a global routine or can be added manually.

The result of the selection in the templates is diplayed via: <%Nop%>.

Correct?

Thanks again.



Quote Reply
Re: Adding Custom Fields In reply to
I haven't had my caffeine yet, but I think the answer is affirmative :)

<%Nop%> would display the "string" that is stored in the Database field Nop.

You need to create the drop down list, in your form. You might be able to just do something such as code the list in normal HTML, then have:

Code:
<%if Nop%>
<option value=<%Nop%> Selected>
<%enfif%>
... rest of list...
...

You know what I mean??



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: Adding Custom Fields In reply to
I do and thanks :)