Support Forum

Every time that you post a problem, PLEASE add the Joomla and the extension's versions and revisions (for example: Joomla 3.3.6, Contact Enhanced 3.3.5), PHP version and Server's Operating System. If you only manage only one site it is easier if you edit your profile and just add that information to your signature. Don't forget to add a detailed description of the problem. If possible, write down all steps to simulate the problem.

Before submitting a new post, PLEASE make sure you are running the latest version, test in different browsers (IE, FF, Chrome,..) and clear Joomla and browser's cache after every change you make.

Also, most questions are already answered in our FAQ and in iFAQ and Contact Enhanced documentation pages.

× Contact Enhanced is a contact component manager created to replace Joomla! core contacts component and add lots of advantages and new features (see Features ) and it offers many plugins and modules for several different purposes,
Product page | Documentation Page

How to change form action after submit

1 year 10 months ago #26165 by blue_Shift
The client (you know who they are) will be running a couple large email campaigns, offering a free download in exchange for name and email address. I am calculating that custom redirect will work - but wrinkle: as I am using a parent category for most fields can I accomplish this using a single field, perhaps a hidden one) from a child subcategory?

Please Log in or Create an account to join the conversation.

1 year 10 months ago #26168 by blue_Shift
PS - I know your schedule. This does not need your immediate attention.

Please Log in or Create an account to join the conversation.

1 year 10 months ago #26170 by support
Dear blue_Shift,

Most users who run this kind of campaign use the HTML Email template to send an auto-reply with a download link to the user instead of a redirect to download. This ensures the user will provide a valid email address in exchange for the download. Will this work for you?

Have a blessed weekend,

Please Log in or Create an account to join the conversation.

1 year 10 months ago #26171 by blue_Shift
The emails are coming from a campaign - so they received an email from us in the first place, the only way to get the link. (This does not, however, mean they won't reply with nonsense.)

The perfect solution would be to open the form in modal, now that I ponder, or at least another window. Using the current redirect method in the contact form field, the original page was broken on return.

This is not needed tonight. +

Please Log in or Create an account to join the conversation.

1 year 10 months ago #26172 by support
What exactly do you mean by "the original page was broken on return"? The Contact Redirect is not working? Are you using the redirect as a relative URL (starting with index.php) or an absolute URL (starting with https://)?

I still have a few minutes before the Sabbath begins ;-)

Please Log in or Create an account to join the conversation.

1 year 10 months ago #26173 by blue_Shift
Absolute URL was what I used, and the Contact Redirect worked fine (if inelegantly by today's standards). When I used the back button to jog back from the sending page, the html was broken - as though it had been written in a 1994 text editor. I wasn't getting a Joomla page for sure!

For this client, it may be worth spending for some additional development on a re-usable system, as they want to do this as a matter of practice.

Please Log in or Create an account to join the conversation.

1 year 10 months ago #26175 by blue_Shift
Now that I have done two campaigns, what I don't have is a re-usable system. Every campaign will need

A new category to be created
All fields copied to the new category
The recipient user to be
_cloned
_renamed
_the new link pasted

To be honest, the only mount of streamlining I can think of doesn't reduce this much - and the above method works. My worry is how unwieldy will the CE admin panel be if this campaign works, and they want to do it again next week, and the week after that, and...

:whistle:

Please Log in or Create an account to join the conversation.

1 year 10 months ago #26176 by support
Dear blue_Shift,

I'm not sure I understood exactly your requirements.

If all Form Fields are the same, you could just create a new contact and assign it to the same category. Actually, if you are using the Redirect URL you could just create a new menu item and set the "Redirect URL" option in the menu item parameters.

Are you using the link to the file as a redirect? If so, that's probably why you are getting a broken HTML when you press the back button.


Another option, if you want to automatically download the file when the form is submitted.

Create a Contact Enhanced HTML template for the Thank you page and add the following code in the HTML Template Source code. Then assign this template to the Contact.
<script>
jQuery(function($) {
    var url = 'https://yourdomain.com/path/to/your/file.pdf';
    var filename = 'Campaign File Name for Download.pdf';
    var a = document.createElement('a');
    a.setAttribute('href', url);
    a.setAttribute('download', filename);
 
    var aj = jQuery(a);
    aj.appendTo('body');
    aj[0].click();
    aj.remove();
});
</script>

Make sure your Editor Plugin allows the script tag.

Will that work for you?

Best regards,

Please Log in or Create an account to join the conversation.

1 year 10 months ago #26177 by blue_Shift
Dear Douglas

Thanks for getting back to me. The broken html has cleared itself up, as I am using the built in functionality of CE rather than trying to work around it.

Since the two simultaneous campaigns launched today, and everything is working (knock wood), I will test your script and method on a sandbox campaign. You know where to send the bill. (Seriously.)

Please Log in or Create an account to join the conversation.

1 year 10 months ago #26179 by support
Dear blue_Shift,

No worries. Let me know if you need any further assistance.

Best regards,

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Copyright © 2018 IdealExtensions.com. All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.
Feedback