'Please set a message' on the form submit

4 replies · opened Jun 22, 2019

Ttugi01Jun 22, 2019

Hi Semicolon,
Thanks for the great template.

I have some problems with the contact form. (http://oko.gallery/courses.html)
I apologise for my ignorance. The issues might be very obvious to you; I am myself a beginner and my scripting abilities and subsequent ambitions in the world of IT do not go much further than the basics implied.

(1) I am using the "form.php" but am not getting back any response on submission (e-mail and attached files are posted nevertheless as well as the autoresponder e-mail).

  • When using the "inline" notification option (data-alert-type="inline") an empty popup appears shortly.
  • When using the "notify" option (data-alert-type="notify")than both the forced recaptcha (set in the form input as a "true" value), as well as the "submit" button, return: "Please set a message" popup which appears shortly in a right top corner of the screen.

I would like to be able to set the message myself but I do not think that this is left in the scripts without particular message setting. I understand that this is an error. Please let me know what might be the problem.

(2) Some basic form validation is obviously implemented in the template I am using. Please let me know if I should specify additional form fields somewhere in the php file?

Also, should I specify additional validation options (as per "jqueryvalidation.org") inline (at the bottom of the HTML page) or in a separate file?
Many thanks...

SSemicolon WebSTAFFJun 24, 2019

Hello,

  1. According to the error you have described, it appears that your Servers are not allowing outgoing Emails which is why you are not receiving Form Responses. Please consider using SMTP Functionality in this case. You can check the Documentation > Forms Section (from your Downloaded Package) for Full Instructions.

Related to Blank Notifications, this issue is due to some missing codes inside your Form HTML. Simply adding a blank .form-result DIV inside the .form-widget Element should fix your issue. Example:


	

	

		

		...

	

You can also set your Custom Messages! Again, check the Documentation > Forms Section for more setup details on this.

  1. Simply adding the .required Class to the Additional Form Fields should work fine. You do not need to add anything to the PHP File as for every additional field you add to your Form, the include/form.php File will do the work for you automatically.

For additional validations, you will need to add the codes at the bottom of the HTML Page. However, this will have conflicts with the Default JS/AJAX Functionality of the Forms. Before you proceed adding your Custom JS Codes for the Form, add the .customjs Class to the .form-widget Element.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Ttugi01Jun 25, 2019

Hi, thanks for the response...
Sorry for not being clear...** I am receiving** the email as well as the autoresponder email messages sent by the form... The issue is that I do not receive any page notification that the form is sent. I was receiving either an empty popup (with form 'data-alert-type' set as 'data-alert-type=”inline”') or “Please set a message” notification (with 'data-alert-type=”notify”') regardless of the fact that a blank .form-result DIV inside the .form-widget Element was present.

Now, when I have removed the data-alert-type completely, upon the form submission I still get only "Please set a message" notification
Furthermore the form seems to be returning the same notification as a Recaptcha notification as an attempt to enforce Recaptcha.

Please let me know how can I set the simple notification that the form details are posted.

Please also let me know where exactly should I place the .customjs Class in the .form-widget Element.
Thank you...

Ttugi01Jun 27, 2019

Can Anyone help, please?

SSemicolon WebSTAFFJun 27, 2019

Hello,

Thanks for your Patience!

It appears that your Page: http://oko.gallery/courses.html has JS Errors which could be causing this issue with the Notifications. Please check your Browser's Developer Console to check the JS Errors on your Page and fix them. This should automatically resolve any issues related to the Forms.

Additionally, make sure that the Form Messages Section inside the include/form.php File does not have this message defined.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard