Editor: Disable buttons & how to target it

Editor: Disable buttons & how to target it

raydlevel5raydlevel5 Posts: 112Questions: 49Answers: 1

I'm trying to disable a button in Editor. Basically, I want this form to be like a property sheet for view-only purposes...

I tried this: dteEffectiveDates.buttons().disable;, this seems to work, but I get an error in the console: Cannot read property 'text' of undefined

Also, I don't fully understand the documentation. How do I specifically target this Update button? Do I pass in the tab index "0"?


  • colincolin Posts: 8,088Questions: 0Answers: 1,359

    Hi @raydlevel5 ,

    The form buttons aren't managed by the Buttons extension, like the ones on the main table. Probably the easiest way to disable it is to toggle the disabled attribute of the element, something like this.

    Hope that helps,



Sign In or Register to comment.