Forums

Remove the "Thanks Message"

nsutterby 18 Feb, 2014
Sure this is an easy one...

I am a complete noobie to this product and have been reading the 'how to' sections as well as searching the forums.
I created some simple forms for testing and they work perfectly. The problem is that I used the 'wizard' to make them (at least I think that's the problem) and now I cannot remove the 'thanks message'. I removed all of the HTML code on that tab, but upon submit, the user is still directed to a blank webpage. I don't want any redirection, I just want to close the window. Currently, the link to the form creates a modal pop-up window correctly, fills in correctly, and sends the data to the email correctly. I just want to close out the popup on submit and stop the redirect if possible.

Thanks in advance and I apologize if I missed a simple document in the 'how to' section outlining this already. I have just been scratching my head for too long.
GreyHead 19 Feb, 2014
Hi nsutterby,

There's no automatic way to close a modal window, ChronoForms doesn't know that it's in a window. You'll need to add the necessary JavaScript to have that happen at the end of the onSubmit event.

Bob
nsutterby 19 Feb, 2014
Bob -

Thank you for your quick response. I think I can figure out how to close the window using javascript, I just thought that it could be an additional event added to the form itself similar to the standard function that generates the email message upon submit. My bigger concern is the way to remove the 'thanks message' that was automatically added to the form when created. On one of the forms I would like to keep it, on a couple others I would like to turn it off if possible. I looked through the 'code tab' in the forms manager interface, through the generated HTML, but that all looks like the formatting and options. I would assume there is something 'behind the scenes' taking care of this like PHP or similar, but I am new to this product and Joomla in general.

Thanks again for your help as I know this is your own time you give up to help users such as myself.
GreyHead 19 Feb, 2014
Hi nsutterby,

If you are using the 'normal' Wizard then you can just delete the Thank You page action; with the CFv5 Simple Wizard you can leave the message empty - or add some PHP to do a ReDirection if you prefer.

Bob
This topic is locked and no more replies can be posted.