• I have installed this plugin, along side Contact Form 7 Multi-Step forms and Contact Form 7 Fields Repeater.

    The Fields repeater allows me to collect a large series of entries, but not have a huge form, and creates fields such as [FieldName-0-0] where the second 0 is the reference to the number “row” for each repeat

    Looking to see if I can do some foreach type processing in the editor window for Send PDF plugin – so that i can look through the entries, rather than have the PDF potentially output 30 blank pages…

    In addition, I note that these fields, and the [multfom “fieldname”] fields dont list as available in the PDF editor for the form.

    Open to ideas….

Viewing 1 replies (of 1 total)
  • Thread Starter matthew74

    (@matthew74)

    Further to the above,

    If I include each of the codes for each of the repeating fields such as [Field-0-0], [field-0-1], [field-0-2] (being 3 records of the same field), then all of them are included in the output PDF… however, if only fields 0-0, and 0-1 include data, then [field-0-2] is actually included in the PDF output as the field label.

    so I guess there are a few solutions here :

    • ability in the plugin editor to slip out of HTML to PHP to put a foreach loop that way
    • write a separate function that hooks into the form submission (when I can work out how to do it) and create a single short-code that Send PDF plugin can use

    Again, I am open to suggestions….

Viewing 1 replies (of 1 total)
  • The topic ‘Foreach / Loops’ is closed to new replies.