Hi all, I'm wondering, how can I get text instead of value when use conditional states in my FORM VIEW??? basically, i want to fill input with text from dynamic cascade. FAQ says: In order to retrieve a custom attribute, use fieldid@attribute
by default it is value, but how can i get text??? I tried fieldid@text = doesn't work !
you can get text from text field easily by "filled by"
you can get text from simple select field if you will add & fill custom attributes for each option, and than use fieldid@yourattribute
that's all what seblod can. NOT possible to do it with
select dynamic - problem (has something like custom attrib....but i don't know how to use it due to lack of information)
select cascade - problem (not possible to use attribs with a goal to use conditional states later)
I see a way out for these two, if we could modify seblod's core files...I'd like to have functionality to add one custom attribute for selected option. And this attribute could be filled by text of option chosen. Than we could use conditional states and "filled by" fieldid@thatattribute (hope explained well)
at the moment I've only JS (based on jquery) to work with these frustrating fields. Here is my fiddle http://jsfiddle.net/terveg/fxJe4/
there is no way to get text directly. What you could do is create someAttribute in select dynamic with text as its value. Then you can read that attribute using fielid@someAttribute. ALternativaly you can use JQuery and do that with few lines of jQuery code.
BUT! it doesn't work for first level of cascade....so need some help to finish this.
Hope, The result will be such that we can get "text" using conditional states