The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
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 |