CalcBuilder Forum

Print Preferences

User moon_602 2012-07-11 11:22:17


I'm working on Print Preferences Layout and want to access the names of some Multivalues.

For values it would be the ##value## option that gives me the result of the corresponding value, but how do I pass its name?


Edited by moon_602 - 11.07.2012 11:27

Moonsoft support 2012-07-12 09:21:50

by now you have not available at the code/print layout sections the 'names' of the values selected. We'll include for next version of the extension a way to have them available, but in the meantime, you could use a workaround:

Define each option value as


When you recover the value you can get the two parts splitting the value this way:

$pieces = explode("#", $value);

$optionname= $pieces;
$optionvalue= $pieces;

Both variables $optionname and $optionvalue will be available to print at Print layout.

Hope this helps

Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!

Create dynamic calculators

Buy now!