Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

last name,first name,middle name

New Here ,
Nov 01, 2017 Nov 01, 2017

     How do I make lastname,firstname,middlename come out like first name, middle name, last name?

Doe,John,Dee look like John Dee Doe

TOPICS
PDF forms
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Nov 01, 2017 Nov 01, 2017
LATEST

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(" ");

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2017 Nov 01, 2017

Do you mean that you want to combine the values of three fields into one field?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 01, 2017 Nov 01, 2017

Yes please.

[Personal info removed by Moderator]

Sent via the Samsung Galaxy S®6 active, an AT&T 4G LTE smartphone

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2017 Nov 01, 2017
LATEST

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(" ");

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines