The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
redirect submission after form have been turned off - 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: redirect submission after form have been turned off (/showthread.php?tid=241)



redirect submission after form have been turned off - bwaye - Aug 13th, 2009

Client has a online seating auction system built with FT API. The only issue is when the client turns the form off to stop the bidding users can still submit but are then redirected to an error page. Does anyone now a workaround to redirect/or change the error page #303 so the clint gets an official Bidding Closed. Thanks in Advance!


RE: redirect submission after form have been turned off - Ben - Aug 15th, 2009

Interesting!

Taking the form offline through that setting has always been a rather odd feature, truth be told. I intended it purely for programmatical purposes: to prevent any new form submission - even faked POST requests - from being added to the database. I hadn't thought that people would use it to take their forms offline since it seemed better for them to actually remove the form itself (no-one wants to fill in a form just to find out it's offline!).

But this is a reasonable requirement & I've gotten this request before. I'm releasing a new build today or tomorrow - I'll include an option for you to include a hidden field in your form: form_tools_inactive_form_redirect_url. When that is set and the form is inactive, the user will be redirected to that URL.

This will affect both API and POST forms.

All the best -

Ben


RE: redirect submission after form have been turned off - Ben - Aug 15th, 2009

Hey bwaye,

I just released the update. It works exactly as described in my previous post. Let me know if you have any trouble with it! Smile

- Ben


RE: redirect submission after form have been turned off - bwaye - Aug 18th, 2009

(Aug 15th, 2009, 2:10 PM)Ben Wrote: Hey bwaye,

I just released the update. It works exactly as described in my previous post. Let me know if you have any trouble with it! Smile

- Ben

awesome!
Ben,

First thanks for addressing this issue. I have a few questions. I set up a new form using the API and added a hidden filed to the form: <input type="hidden" name="redirect" id="http://www.site.com/" />.

When I took the form offline i am still being redirected to the error page. I sure I must be missing something.

Thanks in Advance.


RE: redirect submission after form have been turned off - Ben - Aug 21st, 2009

Hi Bwaye,

Ah - try changing your hidden field to this:

Code:
<input type="hidden" name="form_tools_inactive_form_redirect_url" value="http://www.site.com/" />

Note the different name attribute and that I renamed your id to value.

- Ben


RE: redirect submission after form have been turned off - bwaye - Aug 25th, 2009

(Aug 21st, 2009, 6:00 PM)Ben Wrote: Hi Bwaye,

Ah - try changing your hidden field to this:

Code:
<input type="hidden" name="form_tools_inactive_form_redirect_url" value="http://www.site.com/" />

Note the different name attribute and that I renamed your id to value.

- Ben

THATS IT! - nice job