Hi Jeffrey shabani,
Add a Boolean Attribute :
In the entity associated with your page, add a new Boolean attribute called something like IsPrinting
- Wrap the reference selector in a container.
- Set the container's visibility condition :
$YourEntity/IsPrinting = false
- Before printing the container, set the IsPrinting attribute to True
- Use a Change Object action to update the attribute value.
- After setting IsPrintingto True, proceed with the logic to generate the PDF.
- Once the PDF is generated, set IsPrintingto back to false to make the reference selector visible again.
Another Option :
You can aslo use condition class :
- Add a class like printing-mode to your main container when Isprinting = true.
- Use custom CSS to adjust the layout of the container and hide elements like the reference selector during printing.
.printing-mode .reference-selector-container {
display: none;}
Good Luck !!!
Thanks
Jegadeesh