Welcome, Guest
  • Page:
  • 1
  • 2

TOPIC: Redirect a button to another page

Redirect a button to another page 2 years, 5 months ago #10303

hi all,

How to redirect a button to another page of the site with Quickmode?

Do not work:

1) location.href = "URL TO YOUR PAGE";
Do not print the form and passes directly to the target page.

2) parent.location.href = "URL TO YOUR PAGE";
idem. This is normally pasted in "more options" in advanced form menu.

3) $ url = ff_makePageUrl (
'index.php? option = com_content & task = blogsection & id = 0 & Itemid = 39'
);
Don't work!

4) $ url = ff_makePageUrl (
'mossite () / index.php? option = com_content & task = blogsection & id = 0 & Itemid = 39'
);
Don't work!

5) ff_redirect (
'mossite () / index.php? option = com_contact & view = category & catid = 12 & Itemid = 18'
);
Don't print the form and passes directly to the target page.

6) ff_redirectPage (
'index.php? option = com_content & task = blogsection & id = 0 & Itemid = 39'
);
Nothing happens!

7) ff_redirectParent (
'mysite.net/index.php?option=xxx&Itemid=33'
'url'
);
Don't print the form and passes directly to the target page. Same with $ method = 'post'.

8) I tried this in the intro of a page:
<p> <input onclick = "localhost:8888/siteVMJoomla/index.php?op...&Itemid=18" type = "button" value = "unlimited Technical Area" / >

But I got nothing.

hm .... I forget one?

So, how do?
  • izikit
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0

Re: Redirect a button to another page 2 years, 5 months ago #10304

Hi,

what are you trying to achieve exactly?

Do you want to redirect to a specific page if a certain button is clicked?

Or do you just want to redirect after form submit?
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

Re: Redirect a button to another page 2 years, 5 months ago #10305

Hi Markus,

I am glad to find you!

Here, I created a very complex form with Quickmode, I try to redirect the user to another page of the site BEFORE the validation form with a button.

I know your time is precious and I don't want to pollute the forum with questions that have already been asked, but then I blocked.
  • izikit
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0

Re: Redirect a button to another page 2 years, 5 months ago #10307

Hi,

do you want to leave out that page from being validated? (such that it will be validated later?)

If yes, then you would need to turn off the regular next/previous buttons in the form settings.

Then you put your own buttons that do next and prev.

For instance, you have that page and don't want to go to next page without validation, then add the action (advanced tab of button) "ff_nextpage" from the library.

The final submit button on the last page would then finally get the action "ff_validate_submit."

If other pages need to be validated when going to next or prev, use ff_validate_nextpage or ff_validate_prevpage.

Regards,
Markus
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

Re: Redirect a button to another page 2 years, 5 months ago #10336

Hi,

I understand all these functions, I use them correctly.

In my form, I pose a question (radio button) which can be answered by yes or no. If you answered yes, the following form appears. But if you answered no, a button appears to prompt the user to visit a page tutorial.

My wish is that I want to program this button to "eject" a user when he clicks on it.

I know you can use a native function of BF, but I can not use them. it does not work properly.
  • izikit
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0

Re: Redirect a button to another page 2 years, 5 months ago #10338

After a few searches again ... I am stubborn, I finally found how to redirect to another page of the site:

Here is the code to be placed in "actionscript":

function ff_redirpage_action(element, action)
{
switch (action) {
case 'click':
ff_resetForm();
ff_redirect (
'{mossite}/index.php?option=com_content&view=article&id=59&Itemid=82'
);
break;
default:;
} // switch
} // ff_redirpage_action

Here, I chose to reset the form before leaving. Because, if it comes back, the button that opens the field remain "on" but the fields are "off".
To delete this option, you must remove the following line:

ff_resetForm();

I hope it will help you.
  • izikit
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
Last Edit: 2 years, 5 months ago by izikit.
  • Page:
  • 1
  • 2
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.43 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint