• Fabrik V4.4.1 is now available.

    This version corrects the Admin issue introduced by V4.4. V4.4.1 is available through the Joomla Updater or for download through your My Downloads area of our website.

    Turns out a code change intended for our 5.0dev branch inadvertantly got pushed to the 4.x branch (by me, duh!). The javascript structure in 5.0 will change considerably and part of that change took effect with the inadvertant code change.

    We have reverted the code change and released 4.4.1. V4.4 has been retracted.

    Sorry for any inconvenience.

  • A new version of Full Calendar is now available.

    See the details here

Submit and new

PattiH

Member
I've done some searching, but I can't think of how to make this specific enough to only return posts related to what I'm asking.

I've just upgraded a site to Joomla 2.5 and have installed Fabrik 3. Is there a way to have a button on a form to both submit and bring a new form up? We are entering on a project of data entry with many volunteers, and that sure would be easier than doing "submit" and then "reset" which is the only other way I can think of doing it.

Thank you!
 
Thank you for the help. I've finally gotten back to trying to make this work. I've tried using the redirect, and apparently I'm not doing something right. I've tried making the jump page both this
http://mydomain.org/index.php/ogs-obituary-files-data-entry

and

index.php?option=com_fabrik&view=form&fabrik=1 which is a variation shown on the wiki as this: index.php?option=com_fabrik&view=form&fabrik=X&format=PDF&rowid={rowid}

I've used this as the condition:
return array_key_exists('Copy', $_POST); as shown for the option where the person wanted to return to the form.

This is the error message I get after clicking "submit":
Fatal error: Call to undefined method FabrikFEModelForm::getRedirectContext() in /home/hobbits8/public_html/plugins/fabrik_form/redirect/redirect.php on line 32

Thank you for any help.

Patti
 
Redirect to return to form

It seems like it's almost working. I do get the url that I have entered into the "jump" box. However, it is appending a slash and another digit. I have this as my jump url:

http://mydomain.org/index.php/ogs-obituary-files/form/1/

Then after the ".../form/1" it will look something like this: ".../form/1/0"

If I just remove that last digit in the url, it goes to the form. In the settings, I have "no" checked for
append jump url with data."
 
Well, never mind. I just removed the attempts to redirect, and it works just the way I want returning to a blank form.
 
hi PattiH,

if you want to try implementing this again in the future, feel free to post screenshots of your redirect settings. it should be a fairly easy feature to implement ie just add the url and you are good to go. the only other setting I usually add with this is the 'suppress messages' setting that stops any 'record has been added' type system messages displaying on the page.
 
Well, I guess I spoke too soon. I don't know why it worked a few times, and now is not working like I want again. I have a page where there are links for the form and for the list. If you go to the list and edit any of the existing entries and click "submit," you return to the list page which is what I want. However, if you click on the form link, fill it out, click submit, it returns to the page where the links for the form and list appear. So you have to click the link for the form to get to a new form. I would like for the new, blank form to appear when the data on one form has been submitted.

So I did the redirect thing again. I am attaching a screen shot to show how I have it set up. Instead of going to the page I have inserted into the jump page url, it goes to this: http://ozarksgs.org/index.php/ogs-obituary-files-data-entry/form/1?fabrik=9&random=0
and this error message is displayed:

Fatal error: Call to undefined method FabrikFEModelForm::getRedirectContext() in /home/myusername/public_html/plugins/fabrik_form/redirect/redirect.php on line 32

So what am I doing wrong?

Thanks.
 

Attachments

  • Screen shot 2012-03-18 at 2.09.26 AM.png
    Screen shot 2012-03-18 at 2.09.26 AM.png
    61.1 KB · Views: 178
I think it's interesting that if I click on that link in my reply above, or if I reload the page that has the error message displayed, it displays a new form.
 
hi PattiH,

Can you please post your exact fabrik and joomla versions (ie 2.5.2 or 2.5.3) and whether you have been 'updating from github'.

Also, one thing you might like to try is to set your redirect page with 'http://www' instead of 'http://', it might not be consequential, but i found the other day, if i only defined 'https://' in the redirect url instead of 'https://www' then the logged in user was prompted to log in again to access a 'Registered' access form (as https:// and https://www are treated as separate sites).
 
I have Joomla 2.5.3 and Fabrik 3.0.4. I did update from Github a couple of days ago. I did not take the time to try to figure out the more convoluted process of using Github which I know is easier in the long run. I just downloaded the files from Github and uploaded them to my site. In the extension manager, almost everything shows 3.0.4. Those that don't are "Fabrik Form" showing version 3.0.2; "Fabrik Package" showing version 3.0.3; "mod_fabrik_list" showing version 3.0.2
 
hi PattiH,

can you please try settting:

Content Redirect: Same page

in form > plug-ins

also please check:

- can you access the form directly at the url you are specifying to redirect to?
- are access levels for both forms the same as the user level you are testing this with?
 
Thank you. I tried changing the content redirect to "same page." I still have the same situation.

Yes, if I copy and paste the url in, it goes directly to the blank form.

I'm not sure what you mean about the access levels. You have to be a logged on registered user to view the list or the form. I am a super administrator. On the access levels for the list, some were set at Registered, one thing public (viewing list), and some were set at "special." But as super-administrator, I should be able to do anything, right? I did just change all the "special" to "registered" and the same thing still happened. I don't see that there are any separate access settings for the form -- only for the list.
 
hi PattiH,

i accessed form and logged in, enabled firebug and console and got these errors:

"NetworkError: 404 Not Found - http://www.***.org/templates/js_verdant/images/j_button2_left.png"
"NetworkError: 404 Not Found - http://www.***.org/templates/js_verdant/images/j_button2_image.png"
"NetworkError: 404 Not Found - http://www.***.org/templates/js_verdant/images/j_button2_readmore.png"
"NetworkError: 404 Not Found - http://www.***.org/templates/js_verdant/images/j_button2_pagebreak.png"
"NetworkError: 404 Not Found - http://www.***.org/templates/js_verdant/images/j_button2_blank.png"
"NetworkError: 404 Not Found - http://www.***.org/templates/js_verdant/css/personal.css"
tinyMCE is not defined
..."didnt find wysiwyg edtor ..."+this.options.element)}}else{this.element=document...

i submitted the form and got this error:

Fatal error: Call to undefined method FabrikFEModelForm::getRedirectContext() in /home/***/public_html/plugins/fabrik_form/redirect/redirect.php on line 32

i unpublished 'link to file' element (of type: textarea) to see if that had something to do with it as the editor is loading within the form and one of the errors showing in firebug referred to the editor.

i tried to submit and still have same issue.

one of the developers should be able to help you with this one as there is a very specific error message on submission that they might know something about.

i will keep troubleshooting for a while to see if i can see anything else.
 
hi PattiH

a few other things i checked:

- checked redirect plugin was published and had 'public' access
- tried setting redirect url to www.google.com and still got the error so it seems it is something to do with the redirect plugin.

you might want to try uninstalling redirect plugin and re-installing it (you only have one form so it shouldn't mess anything up, but ofcourse backup first):

extensions > plugin manager > [search for 'Fabrik Form - redirect'] > disable

extensions > extension manager > [search for 'Fabrik Form - redirect'] > uninstall

then go to your github download and navigate to:

plugins > fabrik_form > redirect

and zip that 'redirect' folder.

then go to extensions > extension manager > 'Upload Package File' and select that zip file.

then make sure the plugin is enabled by going to:

extensions > plug-in manager > [search for 'Fabrik Form - redirect'] and make sure it is enabled with 'Public' access.

then go back to the form and add the validation.

i'm not sure if this will fix this issue but this is one way of troubleshooting whether the redirect plugin is installed properly.
 
hi PattiH,

a few other things you might want to consider not related to this issue:

is there any reason you have the <p> tags around the element labels?

i removed the <p> tags from 'link to file' element label (to test) and it still displayed the same on the front end.

and you might want to enable SEF/URL rewriting to get rid of the index.php in your url's.

see this post for a bit more of an explanation.
 
Hi PattiH,
Just wanted to jump in again and say the form redirect plugin is working for me and if I understand correctly you would like the same behavior. Not sure if it will help, but here is a screenshot of my settings.

Note
A. the format of the jump URL (you can ignore the "&fabrik_random=1" portion). Perhaps including the root of your web address is causing a problem?
B. the button settings on the left side (there are two on my form)
C. the condition. I think you need to use the "copy" button for this to code to work.
 

Attachments

  • redirect.png
    redirect.png
    76.5 KB · Views: 131
RW1, I followed the steps you laid out for uninstalling and reinstalling the redirect from GitHub and it still does not work. I understand what you are saying that this was merely to eliminate the possibility of it being corrupt or missing file information. As far as the page tags, I did not purposely include those. I had the JCE editor, but changed to the JCK editor to be able to access the file to link directly from the form (really appreciate those capabilities to include an editor in Fabrik 3). That means that I personally won't have to link all the thousands of files to come. So perhaps I will go in on the code side of the editor, insert the words, and then go back to link the file to keep the page tags out.

Rackem, thanks for your assitance. I did try this, but even though I have the copy button set to "show," it does not show up on my form. I have set everything else as you have it, but it didn't work with the submit button which is the only one showing up. I actually have a similar problem on another site where I'm using Fabrik (Joomla 1.5 and Fabrik 2) where even though I've said NOT to show the delete button, it still is showing. Regardless, I do not know why the copy button (the label of which I've changed to something similar to what you have) is not showing.

Thank you both for your attempts to help.
 

Members online

No members online now.
Back
Top