how to use different icon in map viz?

samani

Member
hi.
I have a form that has yes/no element.i want when set the element to yes, that icon in the map viz changed.
how to use calc element for this need?
i asked this question already in this topic.
but now ask in standard support and i want a little more describe or maybe other solution.
 
Yes, a calc would be the best approach.

As per the tooltips on the 'Data Icon' and 'Data Icon Path' settings, you need an element which has the path to the image you want to use in it, either relative to ./media/com_fabrik/images, or relative to the J! root (you choose and set Data Icon Path accordingly).

Easiest way is probably to create two images, 0.png and 1.png, in your ./media/com_fabrik/images folder, set "Data Icon Path" to "Media relative", and have the calc just return the yes/no element value with .png appended ...

Code:
return "{yourtable___yesno}.png";

Replace yourtable___yesno with the full element name of your yesno element.

If you already have data in your table, set "Calc on save only" to No.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top