-
ChatterFeed
-
0Best Answers
-
1Likes Received
-
0Likes Given
-
2Questions
-
1Replies
If condition on visualforce page
Hello Team!
I want to add IF condition on related custom object records that are added on a table in Visualforce email template.
e.g IF a record has a certain text then a certain column should show.
I have two fields that I would love to apply the IF condition.
See code block I tried shared below:
I want to add IF condition on related custom object records that are added on a table in Visualforce email template.
e.g IF a record has a certain text then a certain column should show.
I have two fields that I would love to apply the IF condition.
See code block I tried shared below:
<apex:repeat var="Column Name" value="{!relatedTo.ObjectField__c}"> <apex:outputPanel rendered="{!IF(oli.ObjectField !== 'KG' || oli.ObjectField__c !== 'KGS' ,true,false)}" <tr> <td style="text-align:left;float:left;" width="195"> <apex:outputText value="{!ColumnName.ObjectField__c}" escape="false" /> </td> <td width="195" style="text-align:left;float:left;">{!ColumnName.ObjectField__c}</td> </tr> </apex:outputPanel> </apex:repeat>The condition is not working as expected. I would appreciate any assistance on this.
-
- Alimali Stephen 15
- November 10, 2021
- Like
- 0
- Continue reading or reply
IF Condition on Visualforce Email Template
Hello Team!
I want to add IF condition where if a certain picklist value is selected then a certain image is picked through static resource image link.
The image picked should show in the vf email template as per the condition set.
The shared code is what I have so far on having the image to display but I am stuck in adding the IF condition to display different images as per a selected picklist value.
I'd appreciate any assistance on this.
I want to add IF condition where if a certain picklist value is selected then a certain image is picked through static resource image link.
The image picked should show in the vf email template as per the condition set.
<messaging:emailTemplate subject="Delivery Status for Invoice Number: {!relatedto.Number__c}" recipientType="Contact" relatedToType="Invoice__c"> <messaging:htmlEmailBody > <apex:outputPanel > <img src="my static resource image url" alt="" style="display: block; padding: 0px; text-align: center; height: 100%; width: 100%; border: 0px none transparent;" width="636"> </img> </apex:outputpanel> </messaging:htmlEmailBody> </messaging:emailTemplate>
The shared code is what I have so far on having the image to display but I am stuck in adding the IF condition to display different images as per a selected picklist value.
I'd appreciate any assistance on this.
-
- Alimali Stephen 15
- November 01, 2021
- Like
- 1
- Continue reading or reply
IF Condition on Visualforce Email Template
Hello Team!
I want to add IF condition where if a certain picklist value is selected then a certain image is picked through static resource image link.
The image picked should show in the vf email template as per the condition set.
The shared code is what I have so far on having the image to display but I am stuck in adding the IF condition to display different images as per a selected picklist value.
I'd appreciate any assistance on this.
I want to add IF condition where if a certain picklist value is selected then a certain image is picked through static resource image link.
The image picked should show in the vf email template as per the condition set.
<messaging:emailTemplate subject="Delivery Status for Invoice Number: {!relatedto.Number__c}" recipientType="Contact" relatedToType="Invoice__c"> <messaging:htmlEmailBody > <apex:outputPanel > <img src="my static resource image url" alt="" style="display: block; padding: 0px; text-align: center; height: 100%; width: 100%; border: 0px none transparent;" width="636"> </img> </apex:outputpanel> </messaging:htmlEmailBody> </messaging:emailTemplate>
The shared code is what I have so far on having the image to display but I am stuck in adding the IF condition to display different images as per a selected picklist value.
I'd appreciate any assistance on this.
-
- Alimali Stephen 15
- November 01, 2021
- Like
- 1
- Continue reading or reply
IF Condition on Visualforce Email Template
Hello Team!
I want to add IF condition where if a certain picklist value is selected then a certain image is picked through static resource image link.
The image picked should show in the vf email template as per the condition set.
The shared code is what I have so far on having the image to display but I am stuck in adding the IF condition to display different images as per a selected picklist value.
I'd appreciate any assistance on this.
I want to add IF condition where if a certain picklist value is selected then a certain image is picked through static resource image link.
The image picked should show in the vf email template as per the condition set.
<messaging:emailTemplate subject="Delivery Status for Invoice Number: {!relatedto.Number__c}" recipientType="Contact" relatedToType="Invoice__c"> <messaging:htmlEmailBody > <apex:outputPanel > <img src="my static resource image url" alt="" style="display: block; padding: 0px; text-align: center; height: 100%; width: 100%; border: 0px none transparent;" width="636"> </img> </apex:outputpanel> </messaging:htmlEmailBody> </messaging:emailTemplate>
The shared code is what I have so far on having the image to display but I am stuck in adding the IF condition to display different images as per a selected picklist value.
I'd appreciate any assistance on this.
- Alimali Stephen 15
- November 01, 2021
- Like
- 1
- Continue reading or reply