[pmwiki-users] prevent wikiform field value from being changed (david roundell)
John Rankin
john.rankin at affinity.co.nz
Sun Jul 20 16:45:28 CDT 2008
>Date: Wed, 16 Jul 2008 16:28:48 +0100
>From: david roundell <roundelld at hotmail.com>
>hellois there a way once a form has been created to dis-allow
>editing of certain fields?for example, a form is created with a
>server name, that is unlikely to change. could the editeform
>for certain fields subsequently be greyed out to stop
>accidental changes to that field, if someone then wants to
>revise that form?i'd prefer to keep the wiki open and avoid
>having to use authuser (or the like). i'm not talking malicious
>users just accidental ones!thanks againdavid
Try installing the latest version from Cookbook/WikiForms.
Here is how I think this will now work:
1. define a text field using one of (!) or ("default text"!)
or (!=nn) or ("default text"!=nn) where nn is the size of
the text box
2. creating new pages with the form should work as before
3. on action=editeform it *should* display, but not allow
changes to, the field value
4. to over-ride the display and force a change, you *should*
be able to add &fieldname=newvalue to the page address
after the ?action=editeform and it *should* display and
save the new value
Let me know if this causes any problems or side-effects.
JR
--
John Rankin
Affinity Limited
T 64 4 495 3737
F 64 4 473 7991
021 RANKIN
john.rankin at affinity.co.nz
www.affinity.co.nz
More information about the pmwiki-users
mailing list