SPLITTING THE RESULTS OF A FIELD?

Community Beginner ,
May 02, 2019 May 02, 2019

Copy link to clipboard

Copied

hi, I have the following script which isn't working?

I would like the MINISPL!1, MINISPL2, MINISPL3 to bring up MINI SPLASH VLUe, and numbers 4 - 6 to bring up MINI SPLASH WHITE??

The blue will end up in one field, the white in another? hope this makes sense

for (var i=1; i<=6; i++) {

    if (this.getField("MINISPL"+"1","2","3").valueAsString=="text") {

        event.value = "MINI SPLASH BLUE";

        break;

    }

}

TOPICS
Acrobat SDK and JavaScript

Views

95

Likes

translate

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 ,
May 02, 2019 May 02, 2019

Copy link to clipboard

Copied

Please tell us for which Adobe product you're scripting so that a moderator can move the thread. Forum comments​ is for problems with the fora.

Regards, Abambo
Hard- and Software Engineer and Photographer.

Likes

translate

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 ,
May 02, 2019 May 02, 2019

Copy link to clipboard

Copied

Abambo  wrote

Please tell us for which Adobe product you're scripting so that a moderator can move the thread. Forum comments  is for problems with the fora.

My answer is not correct, however, it would be helpful if you answer the question of the product... 🙂

Regards, Abambo
Hard- and Software Engineer and Photographer.

Likes

translate

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 Beginner ,
May 02, 2019 May 02, 2019

Copy link to clipboard

Copied

It is in a pdf form, I have found a way round it now, thanks

Likes

translate

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 ,
May 02, 2019 May 02, 2019

Copy link to clipboard

Copied

Discussion successfully moved from Forum comments to JavaScript

Would you mind sharing your solution as others may have the same problem?

Regards, Abambo
Hard- and Software Engineer and Photographer.

Likes

translate

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