The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Form Processing Functions - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: Form Processing Functions (/showthread.php?tid=993) |
Form Processing Functions - firelightcd - 03-07-2018 https://userspice.com/advanced-form-processing/ This page mentions two functions, preProcessForm() and postProcessForm(). I haven't gotten to postProcessForm yet but preProcessForm is giving an error: Call to undefined function preProcessForm() The displayForm and displayView functions work fine. I've done a search through the code and this function can't be found. Do I have a problem with my codebase or has this not been implemented yet? Form Processing Functions - Brandin - 03-07-2018 What version are you using? Form Processing Functions - firelightcd - 03-07-2018 4.3.14 Form Processing Functions - Brandin - 03-07-2018 @mudmin will have to chime in on this one. Can you paste the Forms Helper from users/helpers or users/classes? I'm not sure which one it is in. Form Processing Functions - firelightcd - 03-07-2018 Thanks, Brandin. users/helpers/forms.php https://pastebin.com/qN35TfEF Form Processing Functions - firelightcd - 03-07-2018 I can't find preProcessForm and postProcessForm in that file or in any other files. I also searched the files here: https://github.com/mudmin/UserSpice43dev/archive/master.zip Form Processing Functions - mudmin - 03-07-2018 Oops. preProcessForm is part of Alpha, but it works great. I'll paste that here. Form Processing Functions - mudmin - 03-07-2018 Ok this overwrites users/forms/helpers/forms.php https://hastebin.com/awimelicaj.bash Form Processing Functions - firelightcd - 03-07-2018 Excellent! Thank you! |