You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an issue when attempting to programmatically set the value of a repeater field during the EVENT_BEFORE_SAVE_SUBMISSION event. While I can successfully add rows to the repeater field, the internal fields within each row (text field in this case) are empty in the submitted form.
Steps to reproduce
Create a repeater field in Formie with the handle repeater_field.
Add a text input field inside the repeater with the handle text_field_in_repeater.
Use the following PHP code in a custom module to populate the repeater field during the EVENT_BEFORE_SAVE_SUBMISSION event
That'd be because Repeater fields are quite complex in Formie 2. Using this approach in Formie 3 would work.
In Formie 2, each block/row is an element, so you'll need to iterate through the value of the Repeater field, and modify each blocks' inner field value. It's identical to Matrix behaviour if you've had experience with that.
Describe the bug
I am encountering an issue when attempting to programmatically set the value of a repeater field during the EVENT_BEFORE_SAVE_SUBMISSION event. While I can successfully add rows to the repeater field, the internal fields within each row (text field in this case) are empty in the submitted form.
Steps to reproduce
repeater_field
.text_field_in_repeater
.Form settings
Craft CMS version
4.13.10
Plugin version
2.1.38
Multi-site?
No
Additional context
No response
The text was updated successfully, but these errors were encountered: