Gossamer Forum
Home : Products : Gossamer Links : Discussions :

number of letters/signs in the Description Field

Quote Reply
number of letters/signs in the Description Field
Hi,

I suppose itīs pretty easy ... however I simply cannot find where to adjust the number of letters/signs for the descritpion field (add link).

I would be grateful for any help!

mik
Quote Reply
Re: [mik] number of letters/signs in the Description Field In reply to
... not even the support team has got any advice for me? Sort of disappointing Unimpressed
Quote Reply
Re: [mik] number of letters/signs in the Description Field In reply to
Sorry, but I'm not quite sure what you're asking. Are you just trying to limit the size of the description? If so, you can do this by going to Database => Editor (on the side) => Link, Properties => Click on Description => then on Form Regex, enter .{0,100} where 100 is the maximum length.

Adrian
Quote Reply
Re: [brewt] number of letters/signs in the Description Field In reply to
Yes that kindof works, I tried with .{10,100} and a description of 'qty <10',
and the error message when submitting the form says
"Description cannot contain the value 'qty <10'".

I want a minimum of 100 and max of 300, so the error is going to say:
"Description cannot contain the value 'Some really long entry that
looks like a completely valid description, but it isn't, and no clue for
the submitter as to why". ??

My next task is to limit chars in description. I thought for a second that
I stumbled on the solution to the next project. Did I?

Pugdog has a javascript post that will do it from what I remember.
http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=290262

Is Pugdogs post what has to be done to limit (min/max) characters in a field?
What about the goofy error message when using Form Regex?
Can't it say somethiing like "Description must contain at least 'min' chars",
or "Description must be less than 'max' chars"?

Thank you,
Chris

RGB World, Inc. - Software &amp; Web Development.
rgbworld.com
Quote Reply
Re: [rgbworld] number of letters/signs in the Description Field In reply to
Adding a regex for that is some what of a quick fix kind of solution - we can't expect the base code to be able to handle every single little restriction that someone might want to put on a field and expect it to be able to generate a suitable response. If you want to really do it properly, you'll have to write a plugin and return a proper error, otherwise you're going to get the generic error.

Adrian

Last edited by:

brewt: Apr 11, 2006, 11:46 PM