You need to sign in to do that
Don't have an account?
TheLearner
How to display multipicklist values as checkboxes in pdf
Hi Experts,
I have mulitpicklist field called REASON_FOR_CHARGE__c it contains values almost 14 values those very lengthy so while creating the record if i select the value in the record it need to show in the pdf as ticked as checkbox, for checkboxes images we stored static resoures ($Resource.Checked,$Resource.UnChecked)
, using those checkboxes i need to display and those values need to be show proper alignment in the pdf page,could anyone help me please.
I have mulitpicklist field called REASON_FOR_CHARGE__c it contains values almost 14 values those very lengthy so while creating the record if i select the value in the record it need to show in the pdf as ticked as checkbox, for checkboxes images we stored static resoures ($Resource.Checked,$Resource.UnChecked)
, using those checkboxes i need to display and those values need to be show proper alignment in the pdf page,could anyone help me please.
I think you might be interested in apex:selectCheckboxes - which are explained here:
http://salesforce.stackexchange.com/questions/15398/visualforce-picklist-multiple-checkboxes
That gives you checkboxes for a multiselect field from a record.
Otherwise, I think you might be interested in Visualforce iterators, (also covered in the link above a little bit) like Repeat and PageBlockTable - which you can use to output the values from a list (which you could turn your multiselect into in a controller) over and over again very efficently.. more info on those here. https://developer.salesforce.com/forums/?id=906F00000008mOEIAY