W3C home > Mailing lists > Public > www-forms@w3.org > August 2006

Can you toggle from ev:event="xforms-ready" ?

From: Flinton Adam <Adam.Flinton@cfh.nhs.uk>
Date: Tue, 8 Aug 2006 13:38:52 +0100
Message-ID: <595299DD7F30014BBCE48B93DCB60652046451A5@EXCHAQ2.nhsia.nhs.uk>
To: <www-forms@w3.org>

Dear All,

I have a form which has a value in an instance which can be 1 or 0. 

If it is 0 various fields have to be readonly. I have been using :

readonly="../OID_key = 0"

with some input controls but the users want output controls if the
value/field is readonly.

I looked at using the "relevant=" setting on a bound nodeset but the
node is the whole instance.

So I am left wondering if I can use a switch statement where the case
(read | write) is set upon "xforms-ready" i.e. upon load such that my
controls can be input controls if OID_key=0 is true & output controls if
OID_key=0 is false.

All the examples of toggle & thus case appear to be tied into triggers &
I want the switch to be done upon load.



This e-mail is confidential and privileged. If you are not the intended recipient please accept our apologies; please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents: to do so is strictly prohibited and may be unlawful. Please inform us that this message has gone astray before deleting it. Thank you for your co-operation.
Received on Tuesday, 8 August 2006 12:39:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:18 UTC