This topic is locked

change caption of button on change of field value

4/2/2024 7:58:29 AM
PHPRunner General questions
H
h.hermsen@venlo.nl author

How can i change the caption of a button named activate_button
If field named "select" = 0 then caption should be "activate" and if field named "select" =1 then caption should be "Deactivate"

Sergey Kornilov admin 4/2/2024

Changing button's label dynamically:
https://asprunner.com/forums/topic/26891-changing-the-label-of-the-custom-button-on-the-fly

Implement a field event for that field named 'select'. When field value changes, change the button label accordingly.

https://xlinesoft.com/phprunner/docs/field_events.htm

H
h.hermsen@venlo.nl author 4/3/2024

That works but i have al list with an inline button and i want to change the value off the button if the value of file x = 1 the button text should be "deactivate" if the value of field x = 0 then the button value should be "Activate"

kan het done on loading of the list.

R
Ramsy 6/12/2024

I need to do the same, I migrated from PHPR 10.91 to 11, the dynamic labels do not work anymore.

Any more information on this please?