Foreach Iteration of Repeater Fields

January 21, 2021 21:51:47
terracellc
Topics: 1
Messages: 1
I'm testing out your product and in my custom post type, I have a repeater region (using JetEngine).

The repeater region field shows up as a serial array.

Is there an attribute I'm missing to have this parse correctly and output correctly in the pdf? Or are repeater regions not support for custom post types?

Are repeater regions supported for Formidable Forms? If so, are there any examples out there to see?
January 22, 2021 08:14:34
E2Pdf
Topics: 7
Messages: 3617
Support
Hi,

If you see output as not serialized output and it's not multidimensional array, it must be possible to output data via "implode" attribute as follows:

[e2pdf-wp key="pdf-rooms" meta="true" implode=" ,"]

However if you are using JetEngine, it seems all values in repeatables saved as multidimensional array. In this case it's possible to output values only separately via standard shortcodes via "path" attribute as [e2pdf-wp key="pdf-rooms" meta="true" path="item-0.room-id"]. Some more details can be found here: https://e2pdf.com/support/desk/repeater-field-output.

If you still need to output all values inside one field and you have multidimensional array, currently it's possible to accomplish the task via custom filter added to "functions.php" and modifying shortcode output. Example: https://codeshare.io/2W7eZv.

As about Formidable Forms:

Repeatable values can be output separately via [123:1], [123:2], [123:3] where 123 is field id and 1 is the index of repeatable value. However it's also possible to output data via Formidable Forms "[foreach]" contruction: https://formidableforms.com/knowledgebase/repeatable-section/#kb-displaying-repeater-fields

We remain at your service.

We would really appreciate your feedback at WordPress.org!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.