You need to sign in to do that
Don't have an account?
Naveen Velkur 6
Visual force page which generate pdf document , merge fields retrieve all the check box fields rather then selected one's.
We are using a Visual force page which generate pdf document , merge fields retrieve all the check box fields, requirement is "only selected check box Fields" needs to appear not all the check boxes like yes or no.
Is there any solution to show only selected checkboxes, not all in the pdf document?
Is there any solution to show only selected checkboxes, not all in the pdf document?
To display only the selected checkbox fields in a Visualforce page that generates a PDF document, you can modify your code to include conditional rendering based on the checkbox values. Here's an example of how you can achieve this: In this example, we are using the <apex:outputPanel> component with the rendered attribute to conditionally render each list item based on the checkbox values. Only the checkboxes that are selected (checked) will be displayed in the generated PDF document.
By using the rendered attribute with the checkbox fields, you can control the visibility of each list item based on their selected state. Only the selected checkboxes will be shown in the generated PDF document.
If this helps , please mark this as Best Answer.
Thank you.