That extension worked perfectly.  I first used arraydefine to define
the array and then posted the number using arraysize.  Thanks Yaron!

On Apr 14, 11:14 am, Yaron Koren <[email protected]> wrote:
> This extension would probably prove useful:
>
> http://www.mediawiki.org/wiki/Extension:ArrayExtension
>
> On Tue, Apr 14, 2009 at 4:08 AM, Dan Bolser <[email protected]> wrote:
>
> > 2009/4/13 robertuva <[email protected]>:
>
> > > I have a field labeled as such:
>
> > > {{{field|Variable|input type=textarea|rows=10|mandatory}}}
>
> > > The field allows for multiple values that are delimited based on a
> > > carriage return.  What I am wondering is if there is an easy way to
> > > get a count on the number of values that are in that field.
>
> > > What I am specifically looking to do is to post certain content if the
> > > number of values input are at or below 5 and then different content if
> > > the values input are 6 or above.  I figured I might be able to use the
> > > #ifexpr parser function, but I don't know how to get the number of
> > > values input in order to create the mathematical expression.
>
> > If counting (newlines, properties, etc.) isn't possible via one of the
> > parser functions extensions, it should be easy to implement there. I'm
> > sure the parser functions maintainer would be happy to get such a mod.
>
> > > Any thoughts?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Semantic Forms" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/semantic-forms?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to