Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8554253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:50:22+00:00 2026-06-11T14:50:22+00:00

My form currently has a save button but no apply button. I tried to

  • 0

My form currently has a save button but no apply button. I tried to insert one but it does the same thing as save. Any ideas? Here is the code:

    <div class="formelm-buttons">
        <button type="button" onclick="Joomla.submitbutton('propform.save')">
            <?php echo JText::_('JSAVE') ?>
        </button>
        <button type="button" onclick="Joomla.submitbutton('propform.cancel')">
            <?php echo JText::_('JCANCEL') ?>
        </button>
    </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:50:23+00:00Added an answer on June 11, 2026 at 2:50 pm

    In short:

    Remove $this->setRedirect($this->getReturnPage()); from your save function.

    Reason it breaks apply:

    So this is the function from your comment:

    public function save($key = null, $urlVar = 'id')
    {
        $result = parent::save($key, $urlVar); // If ok, redirect to the return page.
        if ($result) {
            $this->setRedirect($this->getReturnPage());
        }
        return $result;
    }
    

    I understand this function is placed inside a controller which extends JControllerForm.
    Now, this is pretty badly documented but: JControllerForm::save($key, $urlVar) will set the redirect for you.

    This means that when you run $this->setRedirect($this->getReturnPage()); you will override what JControllerForm has already done for you. The difference between save and apply is where to redirect after a successful save.

    So if you remove that setRedirect, the apply should start working (if everything else is alright). Also if you have constructed the table for this save correctly the $urlVar parameter will be set for you. So if that is the case, you don’t need to override save at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently, templates\wffm\forms folder has Insert Options like Form Folder & Form object. This is
I currently have a simple form that when you click the save button will
I'm currently developing a CakePHP application which currently has form authentication. I would also
I currently have form that checks if a user has unsubmitted changes when they
I am currently writing a program to save stuff entered in a form in
My program has a splitcontainer within the form. Panel1 has a button that when
.NET4 and C#. Created a form, used a DevExpress scheduler successfully. My form currently
I currently have a form with inputs and name attributes. I'm able to get
We currently have a form with the standard multi-select functionality of here are the
I currently have a web form aspx page that calls RegisterClientScriptBlock. This sends down

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.