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

Next button attribute

6 years 9 months ago #23262 by CWJMedia
Hi Douglas,

Hope all's good with you.

I'm trying to link a simple form at the top of a home page to a more detailed form on another page. It's probably obvious but I can't work out how to get the "Next" button to link through to the page. (See Screenshot attached)

I would also like the information populated on the home page to carry through to the form on the other page.

Thanks in advance

Chris
Attachments:

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

6 years 9 months ago #23263 by support
Dear Chris,

Is the first form a Contact Enhanced Form as well?

Contact Enhanced works well to "receive" data from get requests (URL), however it is not usually recommend to do that for personal information such as email addresses, because it can be cached by the browser and your user might not like it. Therefore the best way to accomplish that is via POST.

I've just thought of a way you can accomplish that, as long as you have two different forms. Just follow these steps:
1. Go to Components -> Contact Enhanced -> Form Fields
2. Create a new Javascript form field and assign it to the category of the first form;
3. Add the Javascript code below in the field value:
jQuery(document).ready(function($){
	$('#contact-form input[name=task]').val('');
	$('#contact-form form').attr('action','/path/to/the/second/form.html');
});


Best wishes,

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

6 years 9 months ago #23264 by CWJMedia
Hi Douglas,

Thanks, but the jquery code didn't work. Instead I got an "error displaying the error page " for the home page. In the end I had to trash the CE form module to get the page back.

The module on the home page is also a CE form that will ideally link to another form on another page. If that is not possible, is it possible to use a Pagination button to redirect to the next part of the form but on another page? The second part of the form is detailed and will not work in the header area of the home page.

Regards,

Chris

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

6 years 9 months ago #23265 by support
Dear Chris,

There should be no need to trash the module, all you would have to do is disable that particular form field, that caused the issue.
Anyway, I have tested this code locally with Contact Enhanced and it worked.

Have you created a Javascript Form Field type?
idealextensions.com/joomla-ext...ntation/12/106-javascript.html

Best regards,

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

6 years 9 months ago #23266 by CWJMedia
Thanks Douglas,

I'll try it again. Do I need to disable the submit button for the first form for this to work? Also do I make the javascript field hidden?

Thanks,

Chris

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

6 years 9 months ago #23267 by support
Dear Chris,

1. Your custom submit button can stay, not a problem;
2. The hidden option does not applies to the Javascript field.

Best wishes,

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