• Resolved Lockhart

    (@muldari)


    Is there any way to set up the emails so the checked options are on separate lines? It’s really hard to read when they’re all together like this:
    Select Additional Options If Desired
    Plastic Imitation Wood small Floors (5 units Set) $111, Leaning post (width 25”) $111, Fiberglass pad for leaning post $111, Rod holders in stern (4 trolling) $111, Stainless steel cleats 6” $111

    Hoping there’s a solution for this, as there is potential for far more checked items than the sample here. Some way to replace the commas with line breaks?

    • This topic was modified 3 years, 2 months ago by Lockhart.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @muldari,

    I’m afraid, I don’t see a quick workaround regarding this, what you are seeing is the expected behaviour on how the checkbox options are formatted.

    I’m bringing this to our team’s attention and see if there is any workaround that could be suggested or not.

    Will keep you posted once we get further feedback asap.

    Kind Regards,
    Nithin

    Thread Starter Lockhart

    (@muldari)

    Thank you. I really love this plugin. It’s truly one of the best form plugins I’ve ever worked with.

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @muldari,

    Happy to hear your kind words about the plugin. I got further feedback, as a workaround could you please try this code and see whether it works fine:

    <?php
    
    add_filter( 'forminator_custom_form_after_render_value', function( $value, $custom_form, $field_slug ){
    				$your_form_id = 1696;
    				if( $custom_form->id == $your_form_id && false !== strpos( $field_slug, 'checkbox' ) ){
    					$value = str_replace(',', '<br/>', $value );
    				}
    				return $value;
    			}, 10, 3 );

    You’ll have to change the form ID to your form’s ID in the above line. ie:

    				$your_form_id = 1696;
    

    Suppose your form ID is 123, the line changes to:

    				$your_form_id = 123;
    

    You can add the above code as a mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
    https://premium.wpmudev.org/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Please do let us know how that goes, and if you have any queries with the above. Have a nice day ahead.

    Kind Regards,
    Nithin

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @muldari

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional questions or problems.

    Best Regards
    Patrick Freitas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Checkbox Options Layout in Email’ is closed to new replies.