Is it possible to create a custom form element that can be used in widget instance creation?

Fields used in widgets is setup using widget.xml ,for example:

            <label>My Field</label>

How can i replace textarea with a completely custom form element ?


What you need to do is replace textarea with a block representing your new element.


The you can create a class Your_Module_Block_Widget_New_Element that extends Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element. Then depending on what you want your new element to do you can add customizations to this new block.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.