Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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
Comment review and collaborate PDF, How to, PDF forms

Views

38

Likes

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
Adobe Community Professional ,
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;}

Likes

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