The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Update button - return to submission page - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Update button - return to submission page (/showthread.php?tid=1988) |
Update button - return to submission page - firedragon - Apr 14th, 2012 Hi, I have created a form and I have set it up to send Email whenever I create & update a submission. It works beautifully.. But I does not take to back to the Submission List page. Can I make some changes somewhere that when I "update" a submission it should ALSO take me to the Submission list page. I'm from a non-english speaking country, pardon me & let me know if you were able to understand my question or If I need to be more clear. Regards, FireDragon RE: Update button - return to submission page - Ben - Apr 17th, 2012 Hi Firedragon, Interesting! Unfortunately, there's nothing in the script to allow for this. However, if you don't mind hacking it a bit and are well aware that future upgrades may overwrite this change, you can add the functionality like so: Edit the /admin/forms/edit_submission.php file and find these lines on 36-39: PHP Code: if (!$g_success) After those, add an else-clause: PHP Code: if (!$g_success) That should redirect you back to the main submissions page after you update a submission. - Ben RE: Update button - return to submission page - firedragon - Apr 17th, 2012 Thanks Ben, Will try it out & let you know if it worked. 'FormTools' - What you guys have developed is one of the coolest softwares I have ever come accross.. It has made my life a bit simpler. You guys rock.. " May the Lord, mighty God, bless and keep you forever; Grant you peace, perfect peace, courage in every endeavor." Regards, FireDragon. (Apr 17th, 2012, 11:26 AM)Ben Wrote: Hi Firedragon, RE: Update button - return to submission page - firedragon - Apr 18th, 2012 BULL's EYE What you suggested worked BEN. I really appreciate your help.. Regards, FireDragon (Apr 17th, 2012, 8:13 PM)firedragon Wrote: Thanks Ben, RE: Update button - return to submission page - tecnohead - Mar 6th, 2014 Hi is it possible the same way i can make the update button do the add function also... i have user who some time get confused with the update and add buttons RE: Update button - return to submission page - Joe - Mar 10th, 2014 Hey there, Yes, you can redirect the page after it's updated as well. You will need to make updates to the code. Cheers, Joe RE: Update button - return to submission page - tecnohead - Mar 14th, 2014 (Mar 10th, 2014, 7:54 AM)Joe Wrote: Hey there, Hi Joe thanks for the reply could please provide me a way through as as i am not so good in PHP as i am baisically a server admin. Baisically what i want is either after update it runs the add function esle combine the add and update button into one |