Next - Previous Record buttons while editing records

ahmedo

Member
Hello,

Is there a way to add buttons when clicked while editing a record, that will allow me to go the next or previous record? Or a button that will allow me to Save current record and Create a New empty record? Thanks.
 
Save and open a new record:
Add a redirect plugin redirecting to the form with no rowid (or rowid=0).
 
Save and open a new record:
Add a redirect plugin redirecting to the form with no rowid (or rowid=0).
Thanks for the answer. I am not sure what the exact steps to take. I added the redirect plugin, and turned on Save and Next, what I get every time I add a new record and save, it will redirect to the first record in my list. However, when I edit a record, and Click on the Save button, it gives me a new record to add. FYI, I added no url, as I am not sure where to put the redirect url .

Thanks.
 
The form 'pagination' plugin give you prev/next buttons:

http://fabrikar.com/forums/index.php?wiki/paginate-form-plugin/

... which allows you to prev/next through the records without submitting them.

The "Save and Next" feature does just that ... it saves the current form, then edits the "next" one (sequentially according to rowid, taking list filters into account). If you are on the last record, it'll open a new form. Although there was a bug in that feature, whereby it was incorrectly handling the penultimate record and skipping straight to a new row, which I just fixed:

https://github.com/Fabrik/fabrik/commit/01c9af4702a046f72facfef4c94079b8d63166bb

But from the sound of it ...

Save current record and Create a New empty record

... that's not what you want, you always want to save and go a new record. In which case Troester's suggestion is correct. Don't enable "Save and Next", instead just add the URL:

Code:
index.php?option=com_fabrik&view=form&formid=X&rowid=

... replace X with your numeric form ID.

Oh, and if this needs to work on the front and backend, I just added a little tweak:

https://github.com/Fabrik/fabrik/commit/22658a54a0413f794425bc41f62addb9f933826a

... so the same jump URL will work on the backend (where J! wants &task=form.view instead of &view=form).

-- hugh
 
Thanks a lot. The pagination plugin is exactly what I want. However, this is how it looks in my form. Not a pretty sight. I know it is a CSS thing. Is there a way to make it look like proper buttons.

7e8faba687c805a6cd860172221a96ab
 
I know you deleted the post, but I got an email ... what template?

-- hugh
I deleted it because when I paste the link to the image, I did not see the link. I reposted it again. Can you see the image link?

For the template, I am using joomshaper Helix 3. It works nicely with everything else. It is just this plugin.
 
OK, I've committed some fixes to the pagination plugin. One to the main repo, to the plugin itself, and one to the Bootstrap v3 overrides repo:

https://github.com/Fabrik/fabrik/commit/b510d45981c2928d834a4faa412fae4348b920f9
https://github.com/Fabrik/Fabrik-Joomla-alt-layouts/commit/1b2b60120e97ff5cdca99ea477bfc75217f48710

So you'll need to update from both repos. Do a normal Fabrik github update, then grab the BS3 alt layouts and copy them up to your template layouts folder (as per readme in the repo). I presume you've already done that once, as you are using a BS3 template.

-- hugh
 
Thanks Hugh. You know that TV game show called Who Wants To Be a Millionaire, where the contestant has to call for help from his parents. Your last help post requires this. But will get it right. Thanks again.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top