• Resolved javiberlin

    (@javiberlin)


    Hi, I need to translate the form submit button in the page mentioned in the topic.

    Is there any way to do that?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author alexacrm

    (@alexacrm)

    @javiberlin

    if using form shortcode (note that it’s been deprecated) then you can use translation of the string ‘Submit’ in the domain ‘integration-dynamics’ OR you can add wordpresscrm_form_submit_button filter (takes 2 args, caption as a string, and FormInstance, returns string).

    If using Twig form, you can overwrite the form template (form.twig file) with your own implementation OR use Javascript to change the caption.

    Thread Starter javiberlin

    (@javiberlin)

    Ok, cuold you give me same example of using “wordpresscrm_form_submit_button?filter (takes 2 args, caption as a string, and FormInstance, returns string).”

    Thanks!

    Plugin Author alexacrm

    (@alexacrm)

    @javiberlin following simple filter examples:

    add_filter( 'wordpresscrm_form_submit_button', 'change_button_caption', 10, 2 );

    function change_button_caption( $caption, $form ) {
    // replace default button caption with Send
    return "Send";
    }

    Keep in mind that, as I mentioned, it only works for the shortcode. You mentioned translation, for the shortcode you can use translation instead of the code above.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Submit Button in shortcode’ is closed to new replies.