Posts: 7
Threads: 3
Joined: Jan 2012
Reputation:
0
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,
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
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
Posts: 7
Threads: 3
Joined: Jan 2012
Reputation:
0
Jan 18th, 2012, 2:03 PM
(This post was last modified: Jan 18th, 2012, 2:39 PM by cvoliveira.)
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.
Posts: 1
Threads: 0
Joined: Oct 2012
Reputation:
0
Oct 3rd, 2012, 8:15 AM
(This post was last modified: Oct 3rd, 2012, 8:34 AM by MarvinGL.)
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
Posts: 62
Threads: 9
Joined: Apr 2009
Reputation:
2
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";