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
field username - 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: field username (/showthread.php?tid=1864)



field username - cvoliveira - Jan 19th, 2012

Hi,

similar to field "Submission ID" is it possible to add "Last modified date" is it possible to add a similar field to compute the username/client. I want to store in the form that information. Is it possible to use something like {$_username} or something else.

Thanks a lot.
Carlos


RE: field username - Ben - Jan 22nd, 2012

Hi Carlos,

Thanks for the email. I'm actually a bit puzzled as to what version of Form Tools you're using? Last Modified Date was added back in 2.0.0 (2009 or so). Are you running an old 1.x version? If so, I'm afraid we don't support that version any more. :-(

- Ben


RE: field username - cvoliveira - Jan 23rd, 2012

No I am using the last one available to download in the site. I think it´s 2.2.x
Sorry, 2.2.0 version.


RE: field username - Ben - Jan 26th, 2012

Hmm...! So when you edit your View, on the "fields" sub-tab, you don't see a "Last Modified Date" field? When if you click on the "Add fields >>" link for one of your View field groups - you don't see the Last Modified Date field in the dialog window that appears?

- Ben


RE: field username - cvoliveira - Jan 26th, 2012

Hi Ben,

I think I didn't explain well. The field "Last Modified Date" appears correctly.
My question was related with the possibility to have another field like "Last Modified Date", calculated by the system that stores in the form the username/client that insert data in the form.
I mean having the possibility to add a computed field in the form that when clientA inserts data in the form his "clientname"/username is stored in that field.

Thanks for your support.
Carlos.


RE: field username - Ben - Jan 26th, 2012

Ah, I see! Yes, this is certainly possible - but it would need a little bit of programming.

Take a look at the Submission Pre-Parser module:
http://modules.formtools.org/submission_pre_parser/

That lets you add arbitrary code to run when submissions are added and updated. You could use that module to update a special form field, to contain whatever data and with whatever logic you need.

- Ben