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



Form Tools
Non-editable field - 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: Non-editable field (/showthread.php?tid=164)



Non-editable field - kenrohde - May 25th, 2009

Hi

I have a registration form set up which uses form tools 2. The users enter their details and go to paypal. There I take the payments but manually update the amount that each person has paid. People can pay the amount in full or installments. whatever they wish basically.

I use submission account to ensure each person can login to change their details if needed.

I want to add a field in the account submissions page for each user (i.e. where they can review and update their details) so that I (the admin) can enter the amount each person has paid over time. This field should be visible to the user but obviously should not be editable. How can I make this happen?

I can add the field in the registration form and by default it should be zero (i.e. hidden value of zero) but I cannot figure out how to make the field non-editable?

PLEASE HELP Smile

Thanks

Kenneth


RE: Non-editable field - Ben - May 30th, 2009

Hi Kenneth,

Sure, this is no problem!

The Submission Accounts module lets you choose what View is used to display the form fields. This View determines which fields get displayed, in what order - and most importantly in your case, which fields are editable.

What you'll need to do is this:
  1. Create the new field - either to the registration form itself, or just through the Edit Form -> Database tab. In your case, adding it to the form is the simplest approach since it lets you set the default value by just passing "0" along as the value.
  2. Go to your Submission Accounts module (as an administrator) and see what View
    is currently associated with the form.
  3. Now leave the module and go edit the form (Forms -> Edit). On the Views tab, create a new View based on the View used by the Submission Accounts form.
  4. On the Edit View -> Fields tab add your new field and uncheck the "editable" field.
  5. Lastly, return to the Submission Accounts module and choose the new View for the form.

That's pretty much it! Let me know if I didn't explain anything clearly.

Good luck!

- Ben


RE: Non-editable field - kenrohde - May 30th, 2009

Ben - You are a star!