You need to sign in to do that
Don't have an account?
hylim1215
how do i use line break in my IF statement result?
Hi, I have a custom repeat list and one of the column will display different result based on certain condition:-
Thanks.
<apex:repeat value="{!Quote.QuoteLineItems}" var="qli"> <tr class = "stdstyle"> <td>{!FLOOR(count)} </td> <td>{!qli.Product2.Name}</td> <td >{!IF(qli.Quote_PDS_Description__c == "Summary Only",qli.Product_Description__c,IF(qli.Quote_PDS_Description__c == "Summary & Short Details",qli.Product_Description__c + qli.Quote_attribute_1__c ,""))} </td> <td>{!qli.UnitPrice}</td> <apex:variable var="count" value="{!count+ 1}"/> </tr> </apex:repeat>as you see from the above, i would like to have a line break between Product_Description__c & Quote_attribute_1__c instead of joining them together in 1 line. Is that possible?
Thanks.
Try below code.
Let me know if you face any issues, alternatevely mark the best answer if this answers your question.
Regards,
Sai Krishna Tavva.
All Answers
You can use the html break tag to give line break. copy the modified code.
let me know if any errors you face. Alternatevely if this solution gives answer to your question ,please mark it as a best answer.
Regards,
Sai Krishna Tavva.
adding this '</br>' will display this html tag as a text in my pdf, it doesnt break the line.
without ' ' will give me error.
Thanks.
Try updated code.
I have tried this in my DE Org. so let me know with the errors if you face any,
Regards,
Sai Krishna Tavva.
How can I line break only when the attribute is not blank?
for example
that particular item do not have value on attribute 3~6 then it will leave a blank space in my PDF. how can br only when the attribute has value?
Thanks
Try below code.
Let me know if you face any issues, alternatevely mark the best answer if this answers your question.
Regards,
Sai Krishna Tavva.