Change subscribe.php messages

4 replies · opened Aug 26, 2016

RrjsetonAug 26, 2016

Hi, hoping you can help. Looking at integrating the subscribe function into our site. When you click on subscribe I found that the page redirects to subscribe.php and then you get one of the following messages depending on the result.

New Member: { "alert": "success", "message": "You have been subscribed to our email list." }
Existing Member: { "alert": "error", "message": "Member Exists" }
Error: { "alert": "error", "message": "Whatever the error message is" }

So it works well. What I would like to know is it possible to change how these messages are displayed?

Instead of going to another page where the above text is displayed on a blank page (looks so basic after you have been using the rest of the site) are we able to either get the messages displayed the same way as in the contact form where it pops up on the same page....OR....is it possible to get it to redirect to another page altogether for example a thanks page.

Thanks in advance for all your assistance.

SSemicolon WebSTAFFSep 6, 2016

Hello,

[sb_private_reply]We Really Apologize about the Delays in replying to your Support Query and Really Really Appreciate your Patience with us![/sb_private_reply]

According to the issue you have mentioned that the RAW JSON Messages are being displayed on the Page, there appears to be some sort of jQuery Conflict on your Page which is causing this issue. Can you please provide us with a Live URL so that we can check out the exact issue and provide you with a more accurate solution for this. Thanks for your Patience.

Both of the Displayable Options are possible and already available with the Codes: 1. Showing a Message on the Same Page and 2. Redirecting the Page after Successful Submission, but before providing you with the Solutions for this we would need your Live URL to assess the issue.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

SSemicolon WebSTAFFSep 7, 2016

Hello,

We have just checked out your Website and the issue is that your Subscription Form needs to be enclosed inside a .subscribe-widget DIV. Example:


	
	
		
			
			
			
				Subscribe
			
		
	

This will definitely work fine. Additionally, if you need to add the Redirect Functionality to this, then you can simply add the data-redirect="http://your-website.com/thank-you.html" Attribute to the .subscribe-widget DIV. Example:


	
	
		
			
			
			
				Subscribe
			
		
	

This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.

RrjsetonSep 7, 2016

Thank you that worked perfectly.

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