• Resolved zukenstein

    (@zukenstein)


    Still loving this plugin!

    Is it possible to place a print button within one fieldset and only print that particular fieldset?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @zukenstein

    Yes, of course. After inserting the “Print Form” block in the form with the “CP Blocks” plugin, you can assign a custom class name to the fieldset field, for example field-to-print and finally, enter the following code as the onclick event in the print button:

    
    printForm('.field-to-print');
    

    Note: the class names are assigned to the fields through their attributes: “Add CSS Layout Keywords”

    Best regards.

    Thread Starter zukenstein

    (@zukenstein)

    Hi Thanks for the superfast reply as always :).

    That works in that it brings up the print preview but it doesn’t keep the layout columns in the ‘Div’ within the fieldset. It just puts them in a single column. Is there a way of maintaining the layout in the printed version?

    Many thanks.

    Plugin Author codepeople

    (@codepeople)

    Hello @zukenstein

    It takes will use only the structure into the fieldset field. So, if you want to preserve the structure of the columns, insert an “HTML Content” field into the fieldset field with a code similar to the following one:

    
    <style>
    @media print{
    .column2{float:left !important;width:49.9% !important;clear:none !important;}
    .column3{float:left !important;width:33.3% !important;clear:none !important;}
    .column4{float:left !important;width:24.9% !important;clear:none !important;}
    .column5{float:left !important;width:19.9% !important;clear:none !important;}
    }
    </style>
    

    Best regards.

    Thread Starter zukenstein

    (@zukenstein)

    Thats great thanks very much

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Printing single fieldset’ is closed to new replies.