• Rik

    (@rikdol)


    For some reason the form stopped processing the select dropdown values. Whichever option is chosen, the value remains empty in the email subject

    This is the form data:

    <label><b>Categorie:</b></label>
    [select selectedsubject default:1 "Algemeen" "Poorten" "Hekwerk" "Maatwerk" "Schuifpoorten" "Automatisering" "Looppoorten" "Aanbiedingen" "Industrieel" "Staafmatten" "Wandsteunen" "Tuindecoratie"]

    this is what’s set in the mail tab:
    [_site_title] TAV [selected-region]: [your-subject], [selectedsubject]

    to add to this it may be important to mention:

      when submitting the form it doesn’t matter if i ‘touched’ any of the options. this happens without me actually clicking something in the select box, and happens also when i keep it on default 1
      If i fill in the text field, the subject field is filled, but only with data i filled in under [your-subject]

    Flamingo (3rd party) has the field “selectedsubject” properly set, and contains a value, but is sent through email containing nothing.

    • This topic was modified 2 years ago by Rik.
    • This topic was modified 2 years ago by Rik.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Rik

    (@rikdol)

    to add to this it may be important to mention.

    when submitting the form it doesn’t matter if i ‘touched’ any of the options. this happens without me actually clicking something in the select box, and happens also when i keep it on default 1

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use on the site?

    Thread Starter Rik

    (@rikdol)

    Several, listed below.

    to point out, the subject ‘field’, when filled, is getting sent. it’s only the ‘select’ that doesn’t.

    Theme:
    Generatepress
    Plugins :
    Wordfence, WP Fastest Cache, Rank math, Code snippets, Contactform 7, Flamingo, Lightweight Social Icons, Generateblocks (Generatepress), Simple Google reCAPTCHA, Smart Slider 3, Elementor (pro), Rank Math SEO, WP Mail SMTP

    Thanks for helping out

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try switching to the default theme, deactivating all plugins excluding Contact Form 7, Wordfence and Flamingo, and clearing all cache data.

    Why you are advised to deactivate plugins and switch to the default theme.

    Thread Starter Rik

    (@rikdol)

    That seems like an awful lot to shutdown on a live site, for one field that doesn’t get its value sent.

    I will first check what information is inside the array upon the mailsent event. Because when I add any field there’s no problem, until it’s a select field.

    Don’t get me wrong, I read your reference, but can’t pull the site offline atm.

    I will report back if it doesn’t work, or when I disabled the theme and plug-ins.

    Ian Sackofwits

    (@plantprogrammer)

    Hey, rikdol, you can create a staging site, which is a copy or duplicate version of your live site, so you can test out things – deactivating plugins – before implementing it on your live site.

    To do this, you would make an export of your live site, using a plugin such as Duplicator, and then import the exported file into software, such as Local By Flywheel where you can then run a staging version of your site.

    Some web hosting services also offer staging versions of your live site.

    Alternatively, you can use the Health Check plugin and temporarily turn off plugins as well as switch your current theme.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Form returns empty value’ is closed to new replies.