Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

New field in Links

Quote Reply
New field in Links
I created a new field with three fixed values
Validation = Value1|Value2|Value 3
Default Value = Value 1

But he doesn't price as a list in the area Validate of Links and yes only the value default.
How do I do for him to appear how a list same to the fields with value Yes|No?

Does Alex can me to help to solve this problem?
Quote Reply
Re: New field in Links In reply to
Does anybody can me to help?

I add a field with a value default he receives the name of the countries, but in the hour of validating a cadaster that field he appears emptiness. what do I make for him to appear with the value sent in the hour of adding the link?

I thank any help!
Quote Reply
Re: New field in Links In reply to
Hi,

The first question I might have a solution for.

Code:
%db_select_fields = (
ReceiveMail => 'Yes,No',
isChanged => 'Yes,No',
isNew => 'Yes,No',
isPopular => 'Yes,No'
);

In the Links.def (and Validate.def)

You'll see a block like the above. You need to add to it:

Validation => 'Value1,Value2,Value3'

If you put this as the LAST line of the above block, make sure you put a COMMA (,) after the isPopular line, and NO COMMA for the last one!

The second question is the language barrier. I'm not sure what you are trying to do exactly.



Quote Reply
Re: New field in Links In reply to
Thank you Pugdog


but still has a subject:

do I have to add the same field that I added in Links in validate?
Code:
Language => [' 19 ', ' CHAR', ' 0 ', ' 20 ', ' 1 ', ' Portugues', ' Portugues|Espanhol|Ingles ', ' 0 ']

I have to add him in validate.def also?
because in the hour of validating a link I want that the value that the user chose in the hour of adding the link appears.

How to proceed?
Quote Reply
Re: New field in Links In reply to
Ok
Resolved problem...

I added the same field in Validity and now it is everything ok!
Thank you Pugdog for the help.

Smile!
Jānio