W
|
wildwally 1/25/2013 |
I wasn't aware that this could be done through PHP alone - not saying it can't I just was aware. The way that I went about making things read only was evaluating my criteria whether it was the status of something or the users access level in a PHP event like Process record values. The I would pass a variable to the javascript onload event using the $pageObject->setProxyValue, this can be found in the manual. And in the js onload event evaluate with a simple if condition true then make control read only with .makeReadonly(); |
![]() |
Sergey Kornilov admin 1/25/2013 |
My suggestion is to use Javascript API makeReadonly() or setDisabled() functions. |
R
|
rustler45 author 1/27/2013 |
Thanks for the responses but I need the Status field to be readonly for all users except admin users. I would like to make the code that Cristian wrote work for mine. I have used the orginal code he wrote and change it based on my inforamtion as below: |
R
|
rustler45 author 1/28/2013 |
I also tried it this way: |
![]() |
Sergey Kornilov admin 1/28/2013 |
You use incorrect approach to this task. Do not use hacks, use API designed specifically for this purpose. |
R
|
rustler45 author 1/28/2013 |
Sergey, |