We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

Hi, i want to set access control on a single row in a form. so when a public user creates a topic and apply this form, i don't want public user to see(or edit) the "Priority" row(set only admin can see/edit), but public user can type in "Location" and a "Mission". e.g. if logon name is admin, then allow he view/edit "Priority", is logon name is public user, then deny he view/edit "Priority".

I try to use IfDefinedPlugin? /IfStatements or something else to control this, but failed to write "control conditon" statements. How can i write the "control conditon"? Is there a way to do this? Thanks smile

Group Form

This form defines the form of a group page.

Name Type Size Values Tooltip message
Priority select 1 1, 2, 3  
Location checkbox 2 China, USA  
Mission text 40    

  • Set WEBFORMS= GroupForm?

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Security, Forms

-- ShashaLuan - 09 Aug 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

There is no way to do this using forms.

-- CrawfordCurrie - 12 Aug 2006

Thanks, i will find another way to do this :).

-- ShashaLuan - 14 Aug 2006

You could write a Plugin that overloads form fields. The DateFieldPlugin does that sort of thing (you can take it as a base for your Plugin.)

-- PeterThoeny - 14 Aug 2006

 
Topic revision: r4 - 14 Aug 2006 - 06:59:11 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback