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
Disable users possibility to delete or edit lines in the form - 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: Disable users possibility to delete or edit lines in the form (/showthread.php?tid=1862)



Disable users possibility to delete or edit lines in the form - cvoliveira - Jan 18th, 2012

Hi,

Is there a possibility to disable the buttons delete/Edit documents in the form.
I mean by configuration or by php code.
Can someone tell me how to implement that?

Best Regards,



RE: Disable users possibility to delete or edit lines in the form - Ben - Jan 18th, 2012

Hi cvoliveira,

Welcome to the forums!

Do you mean remove the buttons from the forms within the Form Tools interface? If so, no problem! Both are controlled through the form View. Here's how to remove them:

1. Log into Form Tools and click the "edit" icon for the form.
2. Click on the Views tab and select the View you're using (they may be only one).
3. On the first "General" sub-tab, set the "May delete submissions" setting to "no".
4. Go to the Fields tab and at the top of the tab, uncheck the "Allow fields to be edited" checkbox.
5. Click save & you're done!

- Ben


RE: Disable users possibility to delete or edit lines in the form - cvoliveira - Jan 18th, 2012

Thanks for your quick reply.
And the delete button and the div with the export buttons?
Is it possible to disable them to the users?

I explain what I need to do. I need that several clients place information in the form but one client only can add and view the information he/she inserts. But once the information is inserted I want them not to delete or modify the inserted lines.
Imagine this sample: clientA insert info about locationA, ClientB about locationB. ClientA only can see the information inserted by him in locationA (preventing no deletions or edit lines to avoid loss of data). The same for ClientB, C, ...
There's also have to be a superuser that can see information about all Locations (A,B,C, ...).

Can you help me?

Thanks, Carlos
Hi,

I tried your procedure and point 4: Go to the Fields tab and at the top of the tab, uncheck the "Allow fields to be edited" checkbox.
I don´t have that option my installation
I manage to disable the edit button and also delete button.
But the point is: disabling the edit button also disable the possibility to add lines.
You add them but can't insert data.


RE: Disable users possibility to delete or edit lines in the form - Ben - Jan 22nd, 2012

Hi cvoliveira,

Quote:I tried your procedure and point 4: Go to the Fields tab and at the top of the tab, uncheck the "Allow fields to be edited" checkbox. I don´t have that option my installation

That's strange! What version of Form Tools are you using?

- Ben



RE: Disable users possibility to delete or edit lines in the form - MarvinGL - Oct 3rd, 2012

Hello dear Admin,
I've tried to do what you said and me too have the same problem.
this >> "Go to the Fields tab and at the top of the tab, uncheck the "Allow fields to be edited" checkbox." does not exist..

I'm using the 2.2.5 version of form tool.

Thanks for helping.

Marvin
Also, is it possible to disable Download / Export?
Thanks again


RE: Disable users possibility to delete or edit lines in the form - mrGarvin - Oct 8th, 2012

One suggestion... If you're using a different language than english, it may very well be that there's a line missing in your local translation. I have come across this before and what that happens then is that the phrase is just missing when you look at the page where it is supposed to appear.

Open your local language file (it is in /global/lang/) and see if you can find the following:
$LANG["phrase_allow_fields_edited"]
If it's not, then add it and translate it to your language like this:
$LANG["phrase_allow_fields_edited"] = "Allow fields to be edited";