# elements.mybutton.enabled issue

**URL:** <https://forum.servoy.com/t/elements-mybutton-enabled-issue/4873>\
**Category:** Classic Servoy\
**Created:** [October 11, 2005, 8:13pm UTC](https://forum.servoy.com/t/elements-mybutton-enabled-issue/4873 "2005-10-11T20:13:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [October 11, 2005, 8:13pm UTC](https://forum.servoy.com/t/elements-mybutton-enabled-issue/4873/1 "2005-10-11T20:13:26Z")

</div>

I use a controller.readOnly = true statement in different records when they have a certain status.  
(For example invoices are set on readonly when the invoice is printed)

But there are some elements (buttons) on the readonly form from where I still need to activate methods from.  
(For example ‘go to other related record’ methods…)

That’s working fine by using adding elements.mybutton.enabled = true at onRecordSelection.

My problem is that 'elements.mybutton.enabled = true ’ doesn’t work on elements in PORTALS.

How can I get these buttons working? ![:?]( "Confused")
