CalcBuilder Forum

CSS screen vs pdf

User moon_1209 2013-10-31 09:59:34

show / hide

on the screen I manange to hide radiobuttons based on the value of a selection box

used the {display: none;}

but on the pdf I got the default value visable

I try {color:white;} but don't do the trick


url: Removed (no longer there)

Edited by moon_1209 - 31.10.2013 12:36

Moonsoft support 2013-10-31 10:31:37

Hi,
the pdf will print the input form, so the properties set at execution time won't do the trick for this case. If you want to create a dynamic output for the pdf, you can set the print preferences, show input form to 'No', copy the contents of your input form at the HTML before calc results input, and introduce some changes there:

where you have ##radiobuttoninput##, replace for another variable like

##radiobuttondyn##

and finally at the code, calculate value for this text, starting with an empty string:

$radiobuttondyn="";

//and assign a value if you want the value to be printed, depending on option selected:


if($optionfield=="yourvalue"){

$radiobuttondyn=$radiobuttoninput;
}




With this solution you will get an empty text, unless the field 'optionfield' return a value of 'yourvalue'.



Hope this helps, regards

User moon_1209 2013-10-31 12:34:42

Now I see:

The CCS change is client-site with javascipt the CB stuff manage in

The PDF and e-mail is server-site with php calc rules and a html view with the ##var## manage in . The {Include Form input} and {nclude Result} are only the plain info whithout dynamic CCS properties


¡Gracias

...
List Manager

Build different lists for your site

Buy now!
...
Support/development 10 hours

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

Buy now!