I would like to display a readonly text area whose content will change depending on what is loaded (for instance : “Data last modified on dd/mm/yy”).
I can get that data to be displayed dynamically as an input area (set to readonly), but it’s ugly and confusing.
I would like something flat like a “label”, unfortunately even when I give a name to a label I cannot modify its content using commands like myForm.setFormData() even though I can modify “input” fields in this fashion within an onBeforeDataLoad function.
So this
[code]…
{type:“label”, name:“modifiedDateTime”, label:"Going to contain data last modified on "},
…
myForm.setFormData({“modifiedDateTime”: "Data last modified on " + values.modifiedDateTime,…
[/code]
Has no effect, while the rest of the setFormData on “input” type fields works and the input fields are properly set…