This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Stato |
Topic
|
Supporter | Voices | Messaggi | Freshness |
---|---|---|---|---|---|
How to translate “Add/Remove” Repeater labels in WPForms
Started by: dominikN-6 in: English Support |
|
1 | 15 | 2 giorno, 7 ora fa | |
Bug appearing in really specific combination – WPML, WPForms Multilang and Select form element in Re…
Started by: dominikN-6
in: English Support
Problem: foreach ( $fields as $key => &$field ) { $field['name'] = $formPostFields[ $key ]['label']; $entryFields = Obj::propOr( [], 'fields', $entry ); if ( array_key_exists( $key, $entryFields ) ) { $field['value'] = $this->getFieldValue( $field, $entry['fields'][ $key ], $formPostFields[ $key ], $translatedFields[ $key ] ); } } with: foreach ( $fields as $key => &$field ) { $key = strpos( $key, '_' ) !== false ? substr( $key, 0, strpos( $key, '_' ) ) : $key; $field['name'] = $formPostFields[ $key ]['label']; $entryFields = Obj::propOr( [], 'fields', $entry ); if ( array_key_exists( $key, $entryFields ) ) { $field['value'] = $this->getFieldValue( $field, $entry['fields'][ $key ], $formPostFields[ $key ], $translatedFields[ $key ] ); } } Please ensure to test this change on a staging site before applying it to your live environment. If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend opening a new support ticket. Also, check the related known issues and confirm that you have installed the latest versions of themes and plugins. |
|
0 | 22 | 1 mese fa |