In our product, our "disabled" fields do not actually use the disabled property of a form item. Instead, we make it look like it is not editable but the user is still able to highlight the value and copy it - which a normal disabled form item does not allow. My problem now is when the user selects the text in the form and right clicks on it, the delete context menu actually deletes the value. I do not want this at all obviously. So tried using change() to cancel any changes that may occur for this field BUT it only works in FF and Chrome. In IE, the change is not triggered until I click outside of the field.
Code:
isc.DynamicForm.create({ width: 300, fields: [ {name: "fullName", type: "text", title: "Full Name", defaultValue: "Billy Bob", change: function(){form.getField('proceed').setDisabled(false)";return false;} }, {name: "proceed", type: "button", title: "Proceed", click: "isc.say('OK')", disabled: true } ] });
Comment