The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.28 (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.28 (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.28 (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.28 (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.28 (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.28 (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.28 (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.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Further Validation on Internal Forms - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Feature Suggestions (https://forums.formtools.org/forumdisplay.php?fid=7)
+--- Thread: Further Validation on Internal Forms (/showthread.php?tid=1373)



Further Validation on Internal Forms - Mark - Jun 17th, 2011

Applies to 2.1.0 onwards:

Would it be an easy addition to add further validation to Internal Forms?

For example;

On the Contact Us page from one of our customers websites the (external) form validates certain fields to be 'required', 'minimum length' and 'maximum length' as setup in the Website Design software... However if the client or us were to then edit a submission via FormTools, we could technically leave certain fields blank that were originally required.

This would also be a loop hole when manually adding submissions directly into FormTools rather than using the external form, OR using the new Internal Form area.

Currently in 2.1.0 the 'maximum length' validation is present, but 'required' and 'minimum length' is not.

==============================================
EXAMPLE SCREENSHOT:
http://www.freeimagehosting.net/uploads/92869028b2.jpg
==============================================

You could also add an error message if a field that is required is left empty, as seen in the Extended Client Fields module.

- Mark

P.S. Congratulations on releasing the BETA today :-)



RE: Further Validation on Internal Forms - Ben - Jun 18th, 2011

Quote:P.S. Congratulations on releasing the BETA today :-)

Thanks!! I'm very pleased about it. Smile 2.1 feels like a really good improvement to the script. (Now I just have to make it run faster....!)

So... validation. Haha, yeah this has been at the back of my mind for 2 years now. I actually have this slated for 2.2. After that's done, I can finally implement the form builder.

I saw what you did with the customization of the form fields - great work, especially since you don't have the Custom Fields module. I wrote that module to let you do just this - add your own field settings, etc. through a pretty interface, not directly via the database.

But that module will actually be our first premium module - we're in the midst of sorting a payment gateway to start taking payments.

To add the validation, you'd need to add either JS validation, PHP validation or both. I'll send you a separate email.

- Ben