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

Wanting to auto-populate initials in a field based on the first of each word in another field.

New Here ,
Aug 30, 2021 Aug 30, 2021

Copy link to clipboard

Copied

I am building a form. At the top of each page, I need the initials of the person listed in "Name Field" (Like John Smith) to be posted at the top of every page. To clarify not the signature type initials, just the typed "JS". 

 

TOPICS
How to , PDF forms

Views

188

Translate

Translate

Report

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 ,
Aug 30, 2021 Aug 30, 2021

Copy link to clipboard

Copied

LATEST

Use script as validation script of "Name Field" and replace "Signature" field names to your actual field names and add more/less fields as needed:

var str = event.value;

if(event.value == ""){
this.getField("Signature1").value = "";
this.getField("Signature2").value = "";
this.getField("Signature3").value = "";}
else{
var r = str.split(" ");
var y = r[0].substr(0, 1)+r[1].substr(0, 1);
this.getField("Signature1").value = y;
this.getField("Signature2").value = y;
this.getField("Signature3").value = y;}

Votes

Translate

Translate

Report

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