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

Filling in a field only if another field is filled in

Explorer ,
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

152

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 ,
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 : "";

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