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



Form Tools
A Few Questions - 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: A Few Questions (/showthread.php?tid=1404)



A Few Questions - procreative - Jun 24th, 2011

1. Is there a simple way to change the ID No of a form. Have been playing around with the system and have somehow ended up with 3 forms numbered 5, 9, 10! I tried doing this in MySQL but there are so many references to them in different tables it opened a can of worms.

2. Is there a way to auto calculate an age based on a DOB?

3. Have you considered creating a code field to enter code or a script into a form?

4. Have you considered adding an extra field type of a dropdown that with an Add button that allows you to submit a dropdown choice to a table displayed below it?


RE: A Few Questions - Ben - Jun 26th, 2011

Hi Nigel,

Quote:1. Is there a simple way to change the ID No of a form. Have been playing around with the system and have somehow ended up with 3 forms numbered 5, 9, 10! I tried doing this in MySQL but there are so many references to them in different tables it opened a can of worms.

I'm afraid not. You can change the submission ID numbering using the Submission ID Manager module, but not the form IDs. May I ask, why is this needed? I've never had this request before!

Quote:2. Is there a way to auto calculate an age based on a DOB?

You could do this with the Submission Pre-Parser module. That lets you run arbitrary code when submissions are added and updated. What you would need to do is create a new field for "Age", then add a Pre-Parser rule to automatically populate that based on the DOB field value. This would take a programmer to figure it out, though: that module was written for developers to do custom stuff like this.

Quote:3. Have you considered creating a code field to enter code or a script into a form?

How do you mean exactly? Code that would actually be executed, or just stored in the database? If the latter then yes, they can just use a textarea field in your form, and then display the code using the "Code / Markup" field type (2.1.0 only).

Quote:4. Have you considered adding an extra field type of a dropdown that with an Add button that allows you to submit a dropdown choice to a table displayed below it?

Interesting... so, like a new field type (called, say "List Table" or something) which would add them to a list, each with a little "x" next to it to remove it. I like it! This is actually totally do-able with 2.1.0 - it would just need a bit of legwork, and access to the (not yet released) Custom Fields module. Yeah, that's a really nice idea. I may do that!

- Ben