Forum Replies Created
-
AuthorPosts
-
June 7, 2018 at 7:09 am in reply to: Scroll to Error Message instead of Top of Page when missing Required Fields #1548399
Sundco Team
ParticipantHey you-all, I marked my reply as Correct Answer, but I didn’t mean to, and now I can’t figure out how to undo that!
June 7, 2018 at 7:05 am in reply to: Scroll to Error Message instead of Top of Page when missing Required Fields #1548391Sundco Team
ParticipantVictor,
Thank you for submitting a feature request for this.
Also thank you for pointing out the php code that displays the messages. I didn’t notice it in that file before! It turns out moving it above the header block doesn’t help. We’re already hiding the header block (display none). The messages need to go above our content on the page (vobc-before-content and vobc-submission-content).
(I attached a browser code screenshot if you want to see, but I don’t think there’s a way to move those messages up where we need them.)
Thank you for pointing me to the code that writes those messages, because before I was just perplexed! And thank you for putting in the feature request.
Mark
Mark Sund | Kitchen Manager + Studio Director
Sund + Co | 115 Main Street | Milford OH 45150 | Cincinnati USA
http://www.sundco.comJune 6, 2018 at 6:28 am in reply to: Scroll to Error Message instead of Top of Page when missing Required Fields #1547294Sundco Team
ParticipantVictor,
Thank you for suggesting we move the error messages up higher on the page. That would help, but the only way I can see to do that is move this
<?php wp_nonce_field( 'ecp_event_submission' ); ?>up and outside the form. See attached. When I do that, clicking submit yields a white page that says “The link you followed has expired”. So it appears we can’t move the post-submission message block higher on the page.
The real problem is when someone clicks Submit, the page shouldn’t scroll to the *top*. It should scroll to the *ecp_event_submission* block. Then the post-submission (or attempted submission) messages won’t be below the fold on laptops.
Is there a way to make one of these happen? Thank you,
Mark
Sundco Team
ParticipantVictor,
Thanks for the reply. I added the Event URL line you showed, and after clicking Submit, the browser gave an error message. Here’s a screenshot of the email template and the browser’s error message. (The form still created the draft event, but the website visitor got an error message, and the admin didn’t get an email.)
I don’t need custom development help exactly – the kind of information you’re providing is exactly what I’m looking for. Something that would be in the documentation or knowledge base. That info is already in the KB for the form itself but not the notification email.
But something’s not right about this particular line of code for showing the Event URL in the notification email.
Mark
Mark Sund | Kitchen Manager + Studio Director
Sund + Co | 115 Main Street | Milford OH 45150 | Cincinnati USA
http://www.sundco.comSundco Team
ParticipantJuan,
Thank you. I’ve inserted it in functions.php, and cleared the server-side cache, but it doesn’t seem to be working. Perhaps my error but I’m heading out for the day and will fiddle with it more tomorrow.
Mark
-
AuthorPosts
