Answered
Show all info in one field
Hi, I have few info fields (Name,LastName,Address,Phone,Email) how can I get all info into one multiline field with labels in front of info?
Hi, I have few info fields (Name,LastName,Address,Phone,Email) how can I get all info into one multiline field with labels in front of info?
Sure:
var name = this.getField("Name").valueAsString;
var lname = this.getField("LastName").valueAsString;
var address = this.getField("Address").valueAsString;
var phone = this.getField("Phone").valueAsString;
var email = this.getField("Email").valueAsString;
var output = "";
if (name) output += "Name: " + name + "\n";
if (lname) output += "Last Name: " + lname + "\n";
if (address) output += "Address: " + address + "\n";
if (phone) output += "Phone: " + phone + "\n";
if (email) output += "Email: " + email + "\n";
event.value = output;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.