HTML changes if I put it in the confirmation mail

I have created a confirmation email and in normal HTML it shows fine but in gravity forms not.
Does anyone know how I can fix this?

TinyMCE, the editor used for the notifications content is known to remove certain HTML tags when you switch between modes (e.g. from Text to Visual), so I would recommend you to never switch to Visual after adding your HTML content to the Text tab.

To prevent accidental switching between tabs you can use the following snippet to disable Visual tab for notifications:

add_action( 'admin_init', 'disable_tinymce_in_gf');
function disable_tinymce_in_gf() {
    if ( ( RGForms::is_gravity_page() && rgget( 'page' ) === 'gf_edit_forms' && rgget( 'view' ) === 'settings' ) && rgget( 'subview' ) === 'notification' ) {
        add_filter( 'user_can_richedit', '__return_false' );
    }
}

Please check the following link for details and options available to insert custom PHP code: Where Do I Put This Code? - Gravity Forms Documentation

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.