This topic is locked

Checkbox Inline Edit

5/4/2015 10:30:45 AM
PHPRunner General questions
R
RicardoP author

Hi, I'm a little new to PHPRunner and I hope you can help me with this.
I have a checkbox in Inline Edit, what I need to do is when I click the checkbox (when is checked) to copy the value from Field1 to Field2.

For example:

-Field1 as a value of 100 , When I click on checkbox I need that Field2 gets the same value.

How can I do this, do I need to use javascript?
Thank you,

Sergey Kornilov admin 5/4/2015

Yes, you need Javascript and you can use Javascript API for this purpose. You need to execute your code when the value of check box field changes. Read the value of field1 and put it into field2.
Here is an example of how you can execute the some code after value of one of fields changes:

http://xlinesoft.com/phprunner/docs/show_dropdown_list_of_us_states.htm
Reading the value of any control:

http://xlinesoft.com/phprunner/docs/ctrl_getvalue.htm
Setting the value of any control:

http://xlinesoft.com/phprunner/docs/ctrl_setvalue.htm