Skip to Content
author's profile photo Former Member
Former Member

Print structrured field using offsets

Hello guys,

I have structured form context field with name FIELD (not a structure!), let's say a ten char field with the value "AAAABBBBCC" and I would like to write separately the first four chars ("AAAA") than the seconds ("BBBB") and last but not least the last two ("CC").

Can you tell me if this is possible in adobe form (e.g. FIELD+4(4) => "BBBB") and how?

Thanks in advance.

Kind Regards,


Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Sep 21, 2010 at 12:39 PM


    if I were you, I would split the parts in the backend and send a structure into the form, it is much more transparent and straightforward. If you insist on doing this manually, I believe you can script this out. I believe there is charAt method.

    Regards Otto

    p.s.: you can play around with combs

    Add comment
    10|10000 characters needed characters exceeded

    • About the scripting:

      there are PDF guides by Adobe for this scripting, search for them.


      var key = this.field_src.rawValue; //placed on the parent subform of field_A and _B you want to fill

      for (i=0;i<key.length;i++) {

      if (i == 0) field_A.rawValue = key.charAt(i);

      else field_B.rawValue = key.charAt(i);


      Warning: does not do what you want, only assigns the first char of field_src to _A and last to _B (if longer than 1).

      Regards Otto