Filling in a field only if another field is filled in

New Here ,
Mar 16, 2021 Mar 16, 2021

Copy link to clipboard

Copied

defaultrfjue3aoi30b_0-1615921570544.png

I am looking to have the "AP2_ACCT_NUMBER" field fill in with the number from the "ACCOUNT_NUMBER" field, but ONLY if the "APPLICANT_2_FIRST_SPACE_MIDDLE_SPACE_LAST_SPACE_SUFFIX" is filled out. If that field is blank then I do not want anything to be entered into the "AP2_ACCT_NUMBER" field.

 

I have tried to research this but I cannot figure it out. I can get it to enter in the same number as the account number field, but then it stays there anytime the "ACCOUNT_NUMBER" field is filled out.

TOPICS
Edit and convert PDFs, General troubleshooting, How to, JavaScript

Views

40

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 ,
Mar 16, 2021 Mar 16, 2021

Copy link to clipboard

Copied

LATEST

As validation script of "APPLICANT_2_FIRST_SPACE_MIDDLE_SPACE_LAST_SPACE_SUFFIX" add this:

this.getField("AP2_ACCT_NUMBER").value = event.value != "" ? this.getField("ACCOUNT_NUMBER").value : "";

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