This topic is locked
[SOLVED]

 Print Details

9/29/2017 8:24:28 AM
PHPRunner General questions
G
GregJ author

Is there a way to enable the print details by default for a list page?

(for non technical users that don't even see this tick box or have no idea what it means).

G
GregJ author 9/30/2017



Is there a way to enable the print details by default for a list page?

[size="2"](for non technical users that don't even see this tick box or have no idea what it means).[/size]



This is actually very simple to do in the html code for the print dropdown:
<LABEL for="printDetailsToggler{$id}">

<INPUT id="printDetailsToggler{$id}" type="checkbox" checked>

{mlang_message PPANEL_DETAILS}

</LABEL>

Sergey Kornilov admin 10/3/2017

The easier way is to add the following to Javascript OnLoad event:

$("#printDetailsToggler1").trigger("click");
G
GregJ author 10/3/2017



The easier way is to add the following to Javascript onload event:

$("#printDetailsToggler1").trigger("click");



Yes, that works great. It shows the full list of detail tables whereas my method shows only the Print Details 'checked' box. In my case, though, my detail table list is very long, scrolling off the bottom of the page and hiding the print button (plus I don't want users to be able to pick and choose what to print anyway).
This tip will come in handy in another project though.