Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

Tagged: 

This topic contains 1 replies, has 2 voices.

Last updated by Lucas Vidal de Andrade 7 months, 2 weeks ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
October 17, 2024 at 1:08 pm #16300141

martijnG-2

Background of the issue:
Add conditional logic to the submit button of a Gravity Form. I then use WPML to translate the form.

I've debugged the issue and found changing this function in class-gfml-conditional-logic.php (in the Gravityforms Multilingual plugin) to resolve the issue.

public function translate_conditional_logic( $form, $st_context ) {
$form = $this->translate_rules_for_section( $form, $st_context, 'fields' );
$form = $this->translate_rules_for_section( $form, $st_context, 'notifications' );

if (isset($form['button'])) {
$form_item = &$form['button'];
$rules = $this->get_item_rules( $form_item );
$translated_rules = $this->translate_rules( $form, $st_context, $rules, $form_item );
$form_item = $this->set_item_rules( $form_item, $translated_rules );
}

return $form;
}

Symptoms:

Questions:
Can you please update the plugin to fix this?

October 17, 2024 at 1:14 pm #16300341

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Are you still having the issue? This is not clear to me. Thanks in advance.

The topic ‘[Closed] Gravity Forms + WPML Issue: Conditional logic on the submit button is not translated’ is closed to new replies.