Skip to main content
tirah57061466
Participating Frequently
May 2, 2019
Question

SPLITTING THE RESULTS OF A FIELD?

  • May 2, 2019
  • 1 reply
  • 483 views

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;

    }

}

This topic has been closed for replies.

1 reply

Abambo
Community Expert
Community Expert
May 2, 2019

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.

ABAMBO | Hard- and Software Engineer | Photographer
Abambo
Community Expert
Community Expert
May 2, 2019

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... :-)

ABAMBO | Hard- and Software Engineer | Photographer
tirah57061466
Participating Frequently
May 2, 2019

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