Hi I’ve been searching online for the coding on how to make 3 drop down fields on a contact form to go in a row. I’d like these 3 all on one row.
Here is the code I have now.
Nights
[select Nights “7” “14” “21”]
Adults
[select Adults “1” “2” “3” “4”]
Children
[select Children “1” “2” “3” “4”]
This is a private message.
Hi Elise
Thanks for reaching out. Let me take a look and come back to you on this in a bit.
You could perhaps do this using tables:
If you can let me know the rest of the form we could help with the complete HTML.
Thanks, that kind of worked but it hid the headings Nights / Adults / Children.
The whole contact form code is
Your Name (required)
[text* your-name]
Your Email (required)
[email* your-email]
Telephone
[text your-telephone]
Arrival date
[date* date-209]
[checkbox Selectanapartment “Apartment 1” “Apartment 2” “Apartment 3”]
[select Nights “7” “14” “21”]
[select Adults “1” “2” “3” “4”]
[select Children “1” “2” “3” “4”]
Your Message
[textarea your-message]
[submit “Send”]
Let’s try the following:
Thanks but that didn’t work as it only showed the ‘Nights’ – not the adults & children. It also spaced it out too much and showed table outlines & gaps.
Once the structure is there we can fix the little layout issues. Please, can I view this. I wasn’t able to login with the provided details. Can you confirm a link? Thanks.
This is a private message.
Sent thanks – it’s ‘Contact form all 3’ that Im working on.
Also I’m trying to get it to send to different email address depending on whether they choose ‘Apartment 1, 2 or 3’ so you’ll see I put in the code:
[checkbox Selectanapartment “Apartment 1|[email protected]” “Apartment 2|[email protected]” “Apartment 3|[email protected]”]
This did work except that it didn’t tell them which apartment they had chosen. The email came back to the correct email address from the testing but the content said: Apartment: [email protected] when it should have said Apartment: apartment 1
All fixed now layout wise.
I’m not quite sure why the email would come back like that. I tried testing now but the form doesn’t seem to send. Please, could you take a look.
Thank you, all working & looks good. Although it’s all very spread out, do you know how to make it so that there aren’t such big gaps between each – ie between ‘Name’ and box etc.
Now I just got to figure out how to get it to send to different email addresses, depending on which apartment they choose. Ive got it partly working in that if I choose apartment 1 it goes to the right address & if I choose apartment 2 or 3 it goes to the right address, but if I choose apartment 1, 2 and 3 I want it to go to both emails. Any ideas. Here’s my code:
I’ve used: >[checkbox* apartment “Apartment 1|Apartment1” “Apartment 2|Apartment2” “Apartment 3|Apartment3”]
and entered [apartment] in the Mail ‘To’ part. It works except even if I tick all 3
Form looks correct now. I’ve add CSS. For reference, we put Contact Form 7 in a table and then added the following Custom CSS:
Sorry, not sure re: sending all three apartments to all email addresses. Another idea might be to use Gmail or whatever your service is and setup filters to forward emails to different parties based on the subject or other contents.
Thank you.
For sure. Glad we could help.