This guide will demonstrate how to refresh the Repeat Header fields after a Repeat PreFill.
Please add the following JavaScript to your form.
// Repeat group field id
var repeat_field_id = '12d1-c186-2a78';
// Listen to repeat prefill
formyoula.form_fields[ repeat_field_id ].on( 'prefill:success', function( event, data ) {
// Add delay for events to complete
setTimeout( function() {
// Trigger repeat group save
formyoula.form_fields[ repeat_field_id ].trigger( 'repeat:save' );
// Trigger repeat entry header changes
formyoula.form_fields[ repeat_field_id ].trigger( 'change' );
}, 3000);
} );
For any questions, please contact us - at [email protected] or the Formyoula in-app chat 🙂