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
View only - 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: View only (/showthread.php?tid=1831)



View only - DaRichMan - Dec 21st, 2011

I did a fresh install of version 2.1.9

When a user opens a form he can only see a edit button at the right to an entry and not a view button. Is this possible?

Thanx!


RE: View only - DaRichMan - Dec 22nd, 2011

What I want is;
- Admin can add, delete and edit submissions
- Users can view and add submissions
- Users can only edit a submission after clicking an edit button

Also in the cuurent situation when a user ads a submission and does not fill in all the required fields, hits the back button in the browser, an empty submission is created ???

Does anyone have a quick instruction to do that?

Thanx for your help ;-)


RE: View only - Ben - Dec 23rd, 2011

Hi DaRichMan,

Quote:Also in the cuurent situation when a user ads a submission and does not fill in all the required fields, hits the back button in the browser, an empty submission is created ???

Haha! You're not the first person to wonder about this. I'm so surprised: I thought it was very clear - and still do - but enough people have commented now that I think I'll need to change it. When you click "Add", it adds it right then. Plus it displays a message saying "Your submission has been added, edit it below".

What may be better would be to change the behavior so that when the user clicks "Add", a dialog window appears showing a subset of the fields (e.g. just "First Name", "Last Name" and "Email"), which when filled in and submitted, redirects the user to the Edit Submission page. That would be nice, I think - very clear. However, it adds more configuration needed for each View, which I don't like... (you'd need to specify which fields should appear in the new dialog window). I'll have to give it some more thought.

Quote:What I want is;
- Admin can add, delete and edit submissions
- Users can view and add submissions

Sure! Most of this is all configurable through the Views. Views let you control whether the "Add" and "Delete" button appears, and whether any of the fields can be edited. So if you needed the users to only view submissions, you'd need to create a copy of your existing View and on the View Fields tab, uncheck the "Allow fields to be edited" checkbox at the top of the tab. Then, assign that View to your users, and only assign the one that allows editing to the administrator.

Quote:- Users can only edit a submission after clicking an edit button

Nope! Sorry, this can't be done yet. The "edit" icon (with "edit" tooltip) always appears, even if none of the fields in the View are actually editable.

- Ben