Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

Option List name and value 02.11.2011 18:45

Hello everyone,

I have a question and do not know how to solve:

I created a field optin list with several names and values. For me to just show a value I place the $variable = $variableoptionlist; that will come the selected value.

My question is how to show the name and not the value selected?

Can you show me how to show the name and not the value of an type option list?

Sincerely,

Walbert

Re: Option List name and value 02.11.2011 19:01

Hello,

By default, Calc Builder return values and not names to use it in codes. But you can transform values to name in code. Here you have three possible solutions:

-You can use a simple if or switch statements to test values and assign name to other references.

-Also you can declare in code an array with combo value as key and combo name as value and get it easy.

-Other solution is create a matrix in Calc Builder and use it to get values.

Hope this helps. Regards,

Moonsoft Team
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback