Skip to main content
June 22, 2016
Question

Combining two text fields in a form

  • June 22, 2016
  • 1 reply
  • 529 views

I have created a form with 'Physician First Name' and 'Physician Last Name'; how can I get a new field 'Physician Name' to generate automatically combining the first and last name fields once information has been entered into each field?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
June 22, 2016

Use this code as its custom calculation script:

event.value = this.getField("'Physician First Name").valueAsString + " " + this.getField("'Physician Last Name").valueAsString;

June 22, 2016

Thank you!!!