How to change action caption dynamically?

I have defined a custom action in my page extension.

Is is possible to change its caption to 'Enable' or 'Disable' based on a condition in the code?

I'm using business central online.

Parents Reply Children
No Data
Related
Recommended