• Hello! Please see subject.

    When I leave the fields as normal, the actual values come through in my email. However, when I set them to hidden, just the field names come through via email, e.g.:

    [your-name]

    [your-email]

    Here is my form code:

    [hidden email your-email default:get]
    
    [hidden text your-name default:get]
    
    [hidden countrytext countrytext-235]
    
    [checkbox checkbox-confession use_label_element "I agree."]
    
    [checkbox checkbox-support use_label_element "I also agree."]
    
    [submit "Submit"]

    PS – The fields populate fine (using default:get), the only issue is getting the values through to my email.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter xroox

    (@xroox)

    Hi Takayuki, thanks for the reply.

    Any idea why adding “hidden” is causing it not to work? Again, the values come through unless I add hidden. Possible bug, or … ?

    Thanks!

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Everything is explained in the FAQ. Read it first.

    In your case, you don’t have your-name and your-email fields in the form. Whether “hidden” or not doesn’t matter.

    Thread Starter xroox

    (@xroox)

    Hi again! I’m very sorry, but I don’t understand your response or how the FAQ relates. It literally works when I remove “hidden” from my form code.

    So, to be explicit, this works (values come through in email):

    [email your-email default:get]
    
    [text your-name default:get]
    
    [countrytext countrytext-235]
    
    [checkbox checkbox-1 use_label_element "..."]
    
    [checkbox checkbox-2 use_label_element "..."]
    
    [submit "Submit"]

    And this doesn’t (email content says “[your-email]”, “[your-name], [countrytext-235]”):

    [hidden email your-email default:get]
    
    [hidden text your-name default:get]
    
    [countrytext countrytext-235]
    
    [checkbox checkbox-1 use_label_element "..."]
    
    [checkbox checkbox-2 use_label_element "..."]
    
    [submit "Submit"]

    Also, I perhaps should have mentioned (though implied by the code), I am using URL parameters for the default:get values, e.g.:

    [email protected]&your-name=Testing%20Testing

    Which again, works perfectly when using the top form code.

    So maybe I need some help understanding the “why” behind this—or maybe now that I’ve shared further information we can identify if this is a bug, or if I am misusing the syntax. Why would *only* removing “hidden” cause it to not work, specifically (this is definitely the case)?

    Thanks again! I’m sure we’ll get to the bottom of it. All the best. ??

    PS – Here are some screen shots of the emails that came in (1 = no hidden argument; 2 = hidden argument):

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter xroox

    (@xroox)

    Hello! I think the form tags I have shared look correct(?); I have the type, field name, and value. E.g.:

    [email your-email default:get]

    Perhaps you can share where my mistake is?

    Still quite confused! Haha, thanks again. ??</img>

    PS – I didn’t share my mail tags in this ticket, as they work without hidden… but here is my Mail tab content for thoroughness:

    From: [your-name]
    
    Email: [your-email]
    
    Country: [countrytext-235]
    
    Answer 1: [checkbox-1]
    
    Answer 2: [checkbox-2]
    
    
    -- 
    This e-mail was sent from a contact form on [_site_title] ([_site_url])

    Thread Starter xroox

    (@xroox)

    Hi Takayuki, just following up as I’m still not able to resolve this. Thanks so much.

    Kindly.

    Thread Starter xroox

    (@xroox)

    Hello, just following up. I apologize, I was not able to understand your responses in regards to my issues. I don’t see any issues with my implementation (perhaps you can correct me). Thanks again!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hidden form fields not included in email’ is closed to new replies.