This topic is locked

Read Only Text Field - Display

5/21/2012 7:44:30 PM
PHPRunner General questions
A
Athlon author

Hi peeps, This has been asked before by another user, but no replies.
I have an Edit page where I want the user to see all the data but can only edit specific fields. I set all the fiels to Read Only except the ones I wanted them to be able to edit. I have a text area field that when it is set to Read Only does not wrap the text. It works fine on my view page and when the field is editable but when I set the field to Read Only it just display 1 long string of data.
Does any one have an answer or work around for it.. Thanks.
Using 6.1 - best upgrade so far great work.

Sergey Kornilov admin 5/22/2012

Set 'View as' type of this field to 'Custom' and use the following code:

$value = "<div style='width: 200px'>" . $value . "</div>";
A
Athlon author 5/22/2012



Set 'View as' type of this field to 'Custom' and use the following code:

$value = "<div style='width: 200px'>" . $value . "</div>";




Hi Sergey,

I tried this (copy and paste) and it doesn't work.. no syntax error, the text no longer pushes the page out BUT it still does not wrap!

Any ideas?

Sergey Kornilov admin 5/24/2012

It worked for me, tested it before posting here.
If you need more help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.