Hello, regarding the ReadOnlyDisplayAppearance feature, which I think is great, I noticed that when there are forms with a mix of editable and non-editable form items, it’s not very intuitive to understand what is editable and what is not, when using the default readOnlyDisplay: "readOnly" (especially on touch devices but not only).
I tried to put a small label using the APIs related to errors, but that would only work with titleOrientation: "top":
The result is not bad in my opinion:


but with the default titleOrientation, the title wouldn’t be vertically aligned with the textBox:


Anyway I’m not sure if you agree, but in my opinion, it would deserve some different styling or another solution to make more evident the fact that it's a read-only text (while maintaining an aesthetic advantage over the staticText/disabled versions).
I tried to put a small label using the APIs related to errors, but that would only work with titleOrientation: "top":
Code:
isc.DynamicForm.create({ ID: "exampleForm", width: 300, numCols: 1, errors: {email: "<span style='font-size:11px; vertical-align:top'>read only text</span>"}, titleOrientation: "top", fields: [ { name: "username", title: "Username", type: "text", width: "*", required: true, defaultValue: "bob" }, { name: "email", title: "Email", canEdit: false, showErrorIcon: false, showErrorText: true, errorOrientation: "bottom", showErrorStyle: false, required: true, width: "*", type: "text", defaultValue: "bob@isomorphic.com" } ] });
but with the default titleOrientation, the title wouldn’t be vertically aligned with the textBox:
Anyway I’m not sure if you agree, but in my opinion, it would deserve some different styling or another solution to make more evident the fact that it's a read-only text (while maintaining an aesthetic advantage over the staticText/disabled versions).
Comment