You need to sign in to do that
Don't have an account?
JimInSRQ
VisualForce Email If Checkbox Field = True then output
I have a VF Email on which I want to output the text "Backup restored from backup dated" {!relatedTo.ZWave_Date_of_Backup__c} if the checkbox {!relatedTo.ZWave_Backup_Restored__c} = True. Not sure of the syntax. This works...
{!if(relatedto.ZWave_Backup_Restored__c, (relatedTo.ZWave_Date_of_Backup__c), "No Backup to restore")}but when true, I need to concatenate "Was restored from backup created on " with (relatedTo.ZWave_Date_of_Backup__c), using this syntax I get an error Syntax error. Missing ')
{!if(relatedto.ZWave_Backup_Restored__c, "Were restored with backup from " AND (relatedTo.ZWave_Date_of_Backup__c), "No Backup to restore")}OR
{!if(relatedto.ZWave_Backup_Restored__c, "Were restored with backup from " (relatedTo.ZWave_Date_of_Backup__c), "No Backup to restore")}using this syntax I get an error Incorrect parameter type for operator '&'. Expected Text, received Date
{!if(relatedto.ZWave_Backup_Restored__c, "Were restored with backup from " & (relatedTo.ZWave_Date_of_Backup__c), "No Backup to restore")}
The concatenation operator is the sign "+" but do you need to format the date?
There will be many other solutions.
Regards
All Answers
The concatenation operator is the sign "+" but do you need to format the date?
There will be many other solutions.
Regards
https://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html
Regards