I’m probably missing something really obvious, but I’m trying to use “‘multiple’ => true,” with a text field inside a custom module, and on the front-end, I’m getting text that literally says “array”, in place of what the actual content should be.
I’m not seeing any other errors, plugins are disabled, and I’m using the latest version of the plugin (on a local install).
I’ve tried copying other modules and using ‘multiple’ => true as well and am getting the same error / message.
I’ve probably just worked too much this weekend and I’m not thinking clearly :). Any thoughts?
When using multiples the value of a setting will be an array with values for each of your text fields. For example, if you have a field with a key of “my_text” you can access the values like this…
So it looks like I’m finally getting around to testing this out (been extremely busy!).
Unfortunately I’m not having any success. I’ve gone through the various threads and looked at the code within the page builder as well. I’m kicking myself because this should be so simple.
Would it be possible to get a quick and dirty snippet of what I’m trying to achieve?
Really something basic like a repeating text field (that works!) would be fantastic.
And I’m not seeing anything. Checking chrome inspector pulls up a blank (except for the surrounding div tags). I’ve also double checked that there is indeed data being saved in the builder. I’ve also refreshed the cache for the page builder.