This topic is locked

Auto Filled Values Are Showing But Not Accessible On Any Before And After Event Processing

2/12/2013 10:15:56 AM
PHPRunner General questions
R
rockrockers23 author

I use the autofill functionality to fill some of the fields based on selected dropdown record/value.
Now, using JS OnLoad event I _disable_my auto filled control to get rid of any changes because Auto fill won't work on read-only fields.
Problem:

I want to get, process and save the value auto filled using $values[<fieldName>] but get a null value instead. This is true to any Events
My partial solution is to enable the control on my JS event instead of disabling it .

I can now get the auto filled values on any events BUT my auto filled control is now editable which sacrifices my other purpose.
I understand javascript is on client side only but why it affects the server side value if I disable only the control?

Sergey Kornilov admin 2/12/2013

Autofill does work with readonly fields. As a first make sure you un the latest build of PHPRunner. If this doesn't 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.
The difference between disabled and readonly fields is that disabled fields are not submitted to server when you save a record. You need to use readonly fields for this purpose.

R
rockrockers23 author 2/12/2013



Autofill does work with readonly fields. As a first make sure you un the latest build of PHPRunner. If this doesn't 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.
The difference between disabled and readonly fields is that disabled fields are not submitted to server when you save a record. You need to use readonly fields for this purpose.


Hi Sergey, Yes, autofill does not work on read-only fields as I mentioned and that is the reason I use On Load javascript disabling the control because the display state is editable but then, enabling field to suit "autofill" PHPRunner requirement will result to editable field which I don't want to happen.
I think no need to upload demo on this since both disabling control and using read-only fields didn't meet my requirements.
If you may, how do you address this scenario : "**I want the field to be auto filled with value that cannot be alter or modified."**

Sergey Kornilov admin 2/13/2013

Autofill DOES work with readonly fields.