Hello
I just saw that.
It almost works (i removed the tags for phone and mobile and kept it for fax), but the rule puts in commas between all variables even if it is empty.
If i put in data in every variable it turns out like this
040-11 11 11, 0708-22 22 22, Fax: 040-33 33 33
If i put in data only in the Fax field it turns out like this
, , Fax: 040-33 33 33
Here are my slightly modified code
var contact = [[Field("Telefon")],[Field("Mobil")],["Fax:",Field("Fax")]];
var result = [];
for(var i=0; i<3; i++){
if (contact[1] != "") {
result.push(contact.join(" "));
}
}
return result.join(", ")
Best regards
Mattias