Copy link to clipboard
Copied
How do I make lastname,firstname,middlename come out like first name, middle name, last name?
Doe,John,Dee look like John Dee Doe
Copy link to clipboard
Copied
Use this code as the custom calculation script of the field where you want to show the result:
var fields = ["first name", "middle name", "last name"];
var values = [];
for (var i in fields) {
var f = this.getField(fields);
var v = f.valueAsString;
if (v!="") values.push(v);
}
event.value = values.join(" ");
Copy link to clipboard
Copied
Do you mean that you want to combine the values of three fields into one field?
Copy link to clipboard
Copied
Yes please.
[Personal info removed by Moderator]
Sent via the Samsung Galaxy S®6 active, an AT&T 4G LTE smartphone
Copy link to clipboard
Copied
Use this code as the custom calculation script of the field where you want to show the result:
var fields = ["first name", "middle name", "last name"];
var values = [];
for (var i in fields) {
var f = this.getField(fields);
var v = f.valueAsString;
if (v!="") values.push(v);
}
event.value = values.join(" ");
Find more inspiration, events, and resources on the new Adobe Community
Explore Now