working on an email and I have a field that has text in it, could be something like REJECTED, PICTURE_INCOMPLETE, DOCUMENT_TOO_OLD
OR just
REJECTED, DOCUMENT_TOO_OLD
For some reason it wont populate more than one reason see my code below, does indexof allow you to search a field's value for any text? I plugged in text for both PICTURE_BLURRY and PICTURE_INCOMPLETE but for some reason only the blurry text shows?
%%[
Var @picture_blurry,@picture_incomplete, @poa, @poi, @picture_blurrymsg, @picture_incompletemsg, @document_info_not_matchingmsg
/* Set the value to check */
Set @poa = AttributeValue("TriggerEmailEvent__c:PROOF_OF_ADDRESS__c")
Set @poi = AttributeValue("TriggerEmailEvent__c:PROOF_OF_IDENTITY__c")
/* Set the string to check */
Set @picture_blurry = "PICTURE_BLURRY"
Set @picture_incomplete= "PICTURE_INCOMPLETE"
/* Does it match */
if IndexOf(@poi,@picture_blurry) > 0 then
Set @picture_blurrymsg = "The image uploaded was blurry, so we were unfortunately unable to read and assess it."
elseif
IndexOf(@poi,@picture_incomplete) > 0 then
Set @picture_incompletemsg = "Unfortunately some details were missing from the image you uploaded."
ENDIF
]%%
<br> <br>
<span style="margin:10px 0px;color:#283663;line-height: 150% !important;">
<b>Proof of identity </b>
<br> %%=v(@picture_blurrymsg)=%%
<br>
%%=v(@picture_incompletemsg)=%%
<br>
</span>
<br>
<span style="margin:10px 0px;color:#283663;line-height: 150% !important;">
<b>Proof of address </b>
<br> %%=v(@picture_blurrymsg)=%%
<br>
%%=v(@picture_incompletemsg)=%%
</span>