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.              
                                                                           *
************************************************************************************************************************************************
 

<<attachment: jdiaz.vcf>>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to