![]() |
Admin 3/14/2022 |
Not 100% sure I understand what the issue is. The following code should change the background back to white:
|
![]() |
woodey2002 author 3/14/2022 |
Thank you. The problem is that I can't get my custom button to recognise/fire a second condition after the second click. So a user clicks the custom button once and the field turns green as expected however when the user clicks the same custom button again the field background should turn white. click button1 once = background green I can't figure out how to fire the background change after the user clicks the same button for the second time. Cheers, |
![]() |
fhumanes 3/14/2022 |
Hello: I think your problem is that you are not evaluating the value of the field when it changes value. Look at this example that evaluates conditions when you interact with the field. There you should introduce the function of evaluating the content and changing to one color or other the bottom of the field. https://xlinesoft.com/phprunner/docs/ctrl_setvalue.htm Greetings, |
![]() |
Admin 3/14/2022 |
This code doesn't know if it runs the first time or the second time so you need something else to figure out that. When this button is clicked, change the value of any fields? Or just change the background? You are supposed to change the alue of one of fields i.e. from 0 to 1 and vice versa. Then you can based your logic on this field value and set the background accordingly. |
![]() |
woodey2002 author 3/14/2022 |
Thanks very much to you both. That makes sense now. Cheers, |