This topic is locked

Problem setting heigh of text area in dialog

6/11/2024 6:58:19 AM
PHPRunner General questions
M
MikeUk author

I'm using the following code for an email dialog, however Im having a couple of issues.
I need the subject to be read-only, and the textarea hight to 500.
I have tried various values for readOnly (readonly, read_only, etc.

However, nothing changes in the dialog. Any clues as to how this can be achieved?
Mike

ajax.addPDF('pdf', pdfParams, function(response) {
ctrl.dialog({
title: 'Email quote: ' + subject,
height: 600,

fields: [
{
name: 'email',
label: 'Recipient',
value: emailTo // Recipient email address
},
{
name: 'subject',
label: 'Subject',
readOnly: 1,
value: subject // Email subject
},
{
name: 'message',
height: 500, // does not work
label: 'Message',
type: 'textarea',
value: message // Email body
},
{
name: 'filename',
label: 'Attachment Filename',
readOnly: 1,
value: path // Path to the PDF file
}
]
});
});