Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: conditional email styling #29103
    yannis
    Participant

    sorry, I didn’t use the back ticks in my previous message

    // conditional formatting - uses different scripts for email styling
    add_filter('quform_all_form_data_html', function ($content, Quform_Form $form, $showEmptyFields) {
        if (!in_array($form->getId(), array(3))) {
            return $content;
        }
    // END
    
    add_filter('quform_all_form_data_html', function ($content, Quform_Form $form, $showEmptyFields) {
        $newline = "\r\n";
        $content = '<table width="100%" cellpadding="3" cellspacing="0" border="0" style="table-layout: fixed; background: #ffffff; border-bottom: 1px solid #d4d4d4; box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.07);">' . $newline;
    
    ... the rest of the original code
    
    • This reply was modified 6 years, 1 month ago by yannis.
    in reply to: conditional email styling #29102
    yannis
    Participant

    Dear Ally,
    thanks for the prompt reply. I must have done something wrong because the script breaks the website.
    Here is the code with your suggested addition:


    // conditional formatting - uses different scripts for email styling
    add_filter('quform_all_form_data_html', function ($content, Quform_Form $form, $showEmptyFields) {
    if (!in_array($form->getId(), array(3))) {
    return $content;
    }
    // END

    add_filter('quform_all_form_data_html', function ($content, Quform_Form $form, $showEmptyFields) {
    $newline = "\r\n";
    $content = '<table width="100%" cellpadding="3" cellspacing="0" border="0" style="table-layout: fixed; background: #ffffff; border-bottom: 1px solid #d4d4d4; box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.07);">' . $newline;

    ... the rest of the code

    in reply to: css problem with checkbox #27314
    yannis
    Participant

    this is what I would like to achieve (see attached image)

    Attachments:
    You must be logged in to view attached files.
Viewing 3 posts - 1 through 3 (of 3 total)
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy