Hello,
We are trying to set a checkbox readonly but it only gets shadowed, but
it can still be checked.
We have done this change in javascript:
XsltForms_input.prototype.changeReadonly = function() {
+ var node = this.element.node;
+ var type = node ?
XsltForms_schema.getType(XsltForms_browser.getType(node) ||
"xsd_:string") : XsltForms_schema.getType("xsd_:string");
+
if (this.input) {
+ if (type["class"] === "boolean") {
+ this.input.disabled = this.readonly;
+ }
+
this.input.readOnly = this.readonly;
if (this.calendarButton) {
this.calendarButton.style.display =
this.readonly ? "none" : "";
So the checkbox is readonly, althought it isn't sent when submit (it
isn't a problem for me).
¿Do you know a better way of forcing it?
************************************************************************************************************************************************
*La información contenida en este mensaje de correo electrónico es confidencial y puede revestir el carácter de reservada. *
*Está dirigida exclusivamente a la persona destinataria. *
*El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no están autorizados y pueden ser ilegales.*
*Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo. *
*The information in this e-mail is confidential and may be legally privileged. *
*It is intended solely for the addressee. *
*Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful. *
*If you are not the intended recipient, please delete this e-mail. *
************************************************************************************************************************************************
|