Form problems

Hi everyone, at a bit of a loss here. I’m currently in the early stages of constructing a big form, so testing which multi-option route to go, but it won’t send even though it’s using the same settings as another form on the site, which sends fine. The only difference is the email address, which I know works. Both pages are sending and receiving from their own, same email address - the new form send/receive is trev@…
the old form send/receive is admin@… and thats the only difference. No spam protection on either at the moment.

I’ve tried both Standard mail() and a shorestone mail server route. Original form is Standard, so I was hoping the new one would work this way also.

The ‘in-progress’ form, hidden from general search, is:

The original page with a working contact form is:

any pointers would be very much appreciated - I seem to have come to a dead stop!

Hi @TrevReav

Based on this, it looks like the form submits but the PHP handler is missing.

Did you upload just the page to test and not the form files in the includes folder?

/includes/risk_and_models_questionnaire.php

4 Likes

That’s exactly what I did!!

Thanks for your input once again Pete, very much appreciated and I’ll hopefully be looking at that tomorrow.

Cheers

1 Like

That was most certainly the problem Pete, so thanks very much for the pointer. That’s all good now.

New question related to the form.
It will eventually be an 18 question form, with each question having a 4 or 5 option select dropdown, which must be selected.
I have the ‘required’ option ticked, the Required message says “This is required”, so I’d assume if you missed a question, it would highlight the fault ad show the required message.
It only seems to say the general ‘sorry your message couldn’t be sent’ below the submit button, and no clue as to why not.

Is it possible to highlight the problem of an overlooked question on the form?

Hey @TrevReav

This one was a little more tricky, until I noticed the markup was different in the first one from all the other selectors. Since the first one is the only one that seems to respond to the validation.

The script Blocs uses (rightly or wrongly) relies on an input to be inside a .form-group, .form-check, .custom-switch to validate. Questions 2-18 are missing the .form-group wrapper.

If you look at the first one you will see what I mean about the form-group.

So really the validation script misses the field, and the submission error does nothing to explain the failure. Nice :grinning_face_with_smiling_eyes: I don’t know why this method of in browser validation is being used, when Bootstrap has a built in one, and it can compliment backend validation.

1 Like

Cheers Pete - I understood bits of that, so much appreciated - again!

2 Likes

:laughing: as long as you understood how to get it working :smiley:

2 Likes