[opencms-dev] disabling fields in xml templates

Steve Bryan steve at bright-interactive.com
Fri Jan 16 12:25:39 CET 2009

Hi Lorenz

You could create a custom widget for the template form, with some javascript
to do the disabling - eg a DisablableFieldWidget.

Do a Google on 'opencms custom widget' to find info.


-----Original Message-----

Date: Thu, 15 Jan 2009 15:48:18 +0100
From: "Lammersdorf, Lorenz" <ll at metrohm.com>
Subject: [opencms-dev] disabling fields in xml templates
To: <opencms-dev at opencms.org>
	<8E9594E3C9BE104DBDB757D905303C06017559DD at srv-exch2.DOM-METROHM>
Content-Type: text/plain; charset="iso-8859-1"

i wonder if it's possible to disable a field in a xml template if another
field contains a value (think of two images of different sizes, but you'll
allow only one on the website. if image1 contains a value, imageb should
become read only).

More information about the opencms-dev mailing list