I forgot to ask: how to display one of the values only? For example, I
want to see the value ID 1, I tried
<inp2:l_Field name="cust_test" value="1"/>
but no luck...
On 14 mar, 15:07, "Phil --
wbtc.fr --" <
p...@wbtc.fr> wrote:
> yes it works with the value ID, and it's really the way it should work, to
> keep multilingual functionnalities.
>
> thanks !
>
> 2011/3/14 Alexander Obuhovich <
aik.b...@gmail.com>
>
> > Do you have "b" in database too? You should write option value ID not it's
> > title (what user sees near checkbox).
>
> > On Mon, Mar 14, 2011 at 4:01 PM, Phil --
wbtc.fr -- <
p...@wbtc.fr> wrote:
>
> >> Well, I tried this:
>
> >> <inp2:m_if check="l_Selected" name="cust_test" value="b">
>
> >> to check a value inside a custom field named "test" in in-link.
>
> >> While "b" value appears selected using the form element, it doesn't
> >> validate the check. Am I missing something?
>
> >> 2011/3/14 Alexander Obuhovich <
aik.b...@gmail.com>
>
> >>> You can already use Selected tag from that patch, since it works without
> >>> cheating and workaround and it's completely official.
>
> >>> On Mon, Mar 14, 2011 at 3:22 PM, Phil --
wbtc.fr -- <
p...@wbtc.fr>wrote:
>
> >>>> it sounds really better than your first answer :-)
>
> >>>> Let's see Dmitry's workaround for checkboxes to multiselect and this
> >>>> subject will be completly finished !
>
> >>>> 2011/3/14 Alexander Obuhovich <
aik.b...@gmail.com>
>
> >>>>> Actually we have this tag in In-Portal 5.1.1 version already. It's
> >>>>> called "*Selected*". It is part of patch to "db_tag_processor.php"
> >>>>> file inhttp://
tracker.in-portal.org/view.php?id=427task.
>
> >>>>> Here is how to use it. For example your field FieldName has value
> >>>>> "|45|234234|3453|" in it.
>
> >>>>> To check, that "3453" is present within the field you must write this
> >>>>> tags:
>
> >>>>> *<inp2:m_if check="prefix_Selected" name="FieldName" value="3453">*
> >>>>> * yes I got that value*
> >>>>> *</inp2:m_if>*
>
> >>>>> On Mon, Mar 14, 2011 at 12:29 PM, Phil --
wbtc.fr -- <
p...@wbtc.fr>wrote:
>
> >>>>>> That's exaclty what I'm trying to do: multi checkboxes in a single
> >>>>>> field.
>
> >>>>>> Submitting shouldn't be too much hard, but conditional display needs a
> >>>>>> JS or a nice new tag :)
>
> >>>>>> 2011/3/13 Dmitry A. <
dandre...@gmail.com>
>
> >>>>>> Hi guys,
>
> >>>>>>> I was actually fighting the same issues for displaying multi
> >>>>>>> check-boxes used in a single field with our Forms functionality and have
> >>>>>>> worked out some Front-end Elements for it. The worse this was the JS part
> >>>>>>> it's not very user friendly there so I am planning on posting an
> >>>>>>> updated/improved version as part of our new Themes shortly.
>
> >>>>>>> I do agree with Alex that we might want to have a new *Tag* which