Questions tagged [adminform]

A form visible in admin area of magento.

Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

Button after form fieldset

I want to put a button after fieldset legend as shown in fig. I have tried the code below to achieve this but that not works. how can I do this..? $fieldset = $form->addFieldset('custom_fieldset'...
Shashank Kumrawat's user avatar
2 votes
1 answer
4k views

Admin form field button

I am trying to make use of the admin form field with type button. $fieldset->addField('register', 'button', array( 'label' => Mage::helper('module')->__('Button Caption'), 'onclick' =...
user3154108's user avatar
2 votes
1 answer
2k views

How can I make city and state autofill?

Is there a way to get the City and State to select correctly once our operators type in the zip code? It feels like hours pass while trying to select the proper state in the dropdown.
Krista K's user avatar
  • 314
1 vote
1 answer
2k views

Add custom properties to adminhtml Form Field

I want to have some custom properties added to a form in admin section. My code is as follows. $fieldset->addField('customer_ids', 'multiselect', array( 'name' => 'customer_ids[...
Magento Learner's user avatar
5 votes
1 answer
5k views

Magento edit form fieldset - get value of select dropdown into a label

I am working on an edit screen for my grid row. This is what I have so far for this form: <?php class Intellibi_Integration_Block_Adminhtml_Manageasendiapickinglists_Edit_Tab_Form extends ...
Latheesan's user avatar
  • 1,038
1 vote
2 answers
4k views

Error when trying to upload image in WYSIWYG of custom module

I'm getting the following Javascript alert when I click the 'browse' button on the image insert popup of the WYSIWYG: error: error in [unknown object].fireEvent(): event name: open_browser_callback ...
hammygoonan's user avatar
1 vote
1 answer
2k views

Form not appearing on Adminhtml

Here's my folder structure for my block: Product | - Form.php Product.php My product form is a Form Container which is supposed to launch the Form stored within Product -> Form.php However, ...
Dan Hanly's user avatar
  • 724
2 votes
3 answers
8k views

admin field select box default value from database while edit

I have a problem while editing my custom admin module. Custom module working fine but while editing I have to a display select box value as selected from database records, I have two values and in ...
Charlie's user avatar
  • 3,136
1 vote
1 answer
677 views

How To Make An Admin Form For Multiple Collection Records Editing At Once?

I have a Magento standard admin form and it works fine for editing one collection record, but I want to make it so I can edit multiple collection records at once. My idea was to do a for loop where ...
Kevin Chavez's user avatar
1 vote
2 answers
2k views

Fatal error: Call to a member function toHtml() on a non-object

I have custom module storelocator. Tabs used in the admin form. Below code is used to add tabs in the admin form. $this->addTab('form_section_general', array( 'label' => Mage::...
Pandurang Babar's user avatar
1 vote
1 answer
572 views

Sort attribute values in admin with your own attributes

We have created a attribute with a lot of values and we don't want to use the position field. When we create a new product all of the options in the select component are random we want to arrange ...
Kevin's user avatar
  • 11
2 votes
1 answer
1k views

How to get a Field of type “image” not to have a delete checkbox?

How to get a Field of type "image" not to have a delete checkbox ? As it's a required attribute for my form, I don't need the delete checkbox. Here is my addField example : $fieldset->addField('...
Yonn Trimoreau's user avatar
2 votes
2 answers
1k views

Patching/rewrite files in lib/Varien

I would like to know people's thoughts on the best way to patch/rewrite Varien lib files. Specifically whey looking into a couple of issues one with checkboxes and one with image type inputs I found ...
David Manners's user avatar
0 votes
2 answers
1k views

Custom admin form save blank date as 0000-00-00 00:00:00

I have built a grid and admin form for editing a custom table with two date fields: "date_start" and "date_end" It is saving correctly and if I enter a date it will save the date as I enter it. ...
Typhado's user avatar
  • 692
14 votes
2 answers
6k views

Start and End Date Validation

I have been working on admin form where I want the user to select Start Date and End Date. I have to provide validation such that the End Date must be greater than Start Date. Could anyone pls help ...
Jordan's user avatar
  • 233
2 votes
1 answer
1k views

How to Validate Checkbox in Magento

In Form I have added code for checkbox as follows. $fieldset->addField('title', 'checkboxes', array( 'label' => Mage::helper('custommodule')->__('Title'), 'class' => '...
YKJ's user avatar
  • 387
1 vote
1 answer
4k views

How to set a value as selected in custom admin form?

I have an admin form with following field $author = Mage::helper('blog/post')->getDefaultAuthorId(); $fieldset->addField('post_author', 'select', array( 'label' => Mage::helper('...
Anu's user avatar
  • 420
1 vote
1 answer
6k views

Field value in admin form not saving to database

This is what I'm trying to achieve as the end result by the way:- I think I may have just realised why $this->getImageHtml($model->getImgMain()) returns nothing. Is this meant to be getting the ...
zigojacko's user avatar
  • 1,754
0 votes
2 answers
2k views

WYSIWYG TinyMCE Editor Integration

I have integrated WYSIWYG Editor using this tutorial. I can see it in my custom module, but when I try to insert variable it gives me following error in console Error: ReferenceError: widgetTools is ...
Mark's user avatar
  • 81
1 vote
2 answers
19k views

Admin form select value from dropdown

Model/Nic.php contains public function toOptionArray() { $nicCollection = Mage::getModel('nic/nic')->getCollection(); $nicarray = array(array('value'=>-1, 'label'...
Mark's user avatar
  • 81
0 votes
1 answer
2k views

Admin Form fetch values from Database and keep it selected in dropdown

I have a custom module in admin, where I am display values in dropdown format something like below using addField function. <select onchange="checkSelectedBean(this.value)" class="required-entry ...
Mark's user avatar
  • 81
1 vote
1 answer
3k views

Admin form fetch values from dropdown

I have created a custom admin module and in my Model/Nic.php, I have created below function public function toOptionArray() { $nicCollection = Mage::getModel('nic/nic')->getCollection(); $...
Mark's user avatar
  • 81
1 vote
1 answer
1k views

Show WYSIWYG button below custom category attribute

I added category attribute (textarea) and Magento stops displaying WYSIWYG button if I use custom renderer for that textarea field. I want to ask I anyone knows why this happens? Here are my steps. I ...
d3tr5845's user avatar
  • 317
6 votes
2 answers
7k views

Custom system configuration fields

I'd like to create my custom field type to use it in system config forms (System -> Configuration). For example, to create simple text field we need to use <frontend_type>text</frontend_type&...
kahirm's user avatar
  • 188
4 votes
2 answers
4k views

How to set the default value of "Is Active" to "yes" on a new category

I'm trying to set the default value as "Yes" for the Is Active field on New Category. The default value is no, and the store owner gets annoyed when the category doesn't show on the frontend. I've ...
giancarloap's user avatar
0 votes
3 answers
162 views

From form to sql query

I've got this new tab: <?php class Pulsestorm_Adminhello_AdminhelloController extends Mage_Adminhtml_Controller_Action { public function indexAction() { //Get current layout state ...
user3497472's user avatar
0 votes
1 answer
455 views

How to Admin setTemplate?

I've found this question and in the answer someone says to set the template as you can see here https://stackoverflow.com/questions/13035891/create-a-form-in-magento-admin-panel/16841794#16841794. ...
user3497472's user avatar
3 votes
2 answers
1k views

Field dependency for category attributes

I add attributes in setup script, all is configured properly and attributes are added to a new tab called "MyGroup": $installer = $this; $installer->startSetup(); $installer->addAttribute('...
kahirm's user avatar
  • 188
2 votes
1 answer
567 views

Using resource model class to save back-end configuration

So I have this custom form in the back-end from which I want to save/load values from my custom table in the database. I have set that form to use a my custom model - this is from the system.xml file ...
Syspect's user avatar
  • 1,283
1 vote
3 answers
9k views

Add confirmation pop-up to admin form "Save" button

I have custom module which adds admin form. There is a button "Save" in the form container that saves the entire form and adds some data to the database. I would like to avoid situation that user ...
d3tr5845's user avatar
  • 317
1 vote
2 answers
219 views

Adminhtml module pass variables to template

I'm working with Magento CE 1.7.0.2. I am creating a custom admin page. Tutorial I follow is from MagentoCommerce. It is a good enough tutorial but there is no information about how to pass variables ...
Marin Bînzari's user avatar
1 vote
1 answer
57 views

HTML Integrated Help

Has anyone see a way to integrate a html help system into magento admin? For example, on a admin page, include a button which links to a context sensitive help file I know there are a few links in ...
Brendan Bell's user avatar
0 votes
2 answers
1k views

Wrap the admin grid in Form

In my custom module, I have a admin grid which I added through extending the Mage class Mage_Adminhtml_Block_Widget_Grid. Now I have a requirement that the above created grid should be wrapped in a ...
Mr_Green's user avatar
  • 1,605
1 vote
1 answer
1k views

Unable to add form in content section magento admin custom extension

I am working on magento admin. Try to adding grid with add edit action. But I am stuck at strange issue my form is display in left sidebar under selected tab. Don't know why this happen. Please help ...
Vikrant Roy's user avatar
1 vote
2 answers
919 views

Admin add editor field and widget?

I have a custom module. Inside _prepareForm I have also field editor. $wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig(array('add_variables' => false, 'add_widgets' => ...
JohnyFree's user avatar
  • 1,529
2 votes
2 answers
8k views

Magento Adminhtml date picker on custom page (non-form)

I'd like to add a date picker to a custom input field on a .phtml. file which is loaded by Block reference, i.e: Controller public function indexAction() { $this->loadLayout(); $this->...
Moose's user avatar
  • 7,495
0 votes
1 answer
1k views

set values to fields in adminhtml form template

I'd created a template file for admin form tab as: class Excellence_Designer_Block_Adminhtml_Designer_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs { protected function _beforeToHtml() { ...
Mohammad Faisal's user avatar
0 votes
2 answers
2k views

Date behaves differently in column and form field

Date stored in database: 2014-02-07 00:00:00 Magento Timezone: IST (GMT +5.30) When I display this in column - it displays - 2014-02-07 05:30:00 which is correct and expected (since magento stores ...
Rakesh Shewale's user avatar
3 votes
1 answer
4k views

show magento scope switcher in admin grid edit form

I'm working on a module in magento admin where I would like to show the scope selector as in manage products, manage categories, system configuration for my grid edit form. ![screenshot][1] Can ...
Mohammad Faisal's user avatar
4 votes
1 answer
92 views

Purpose of Time Condition Field

I have no clue what is the purpose of time_condition field in admin page. Class File: Mage_Adminhtml_Block_System_Config_Form_Field_Import ... { public function getElementHtml() { ... ...
Leongelis's user avatar
  • 585
0 votes
1 answer
217 views

Add database field to model and make it editable using Varien_Data_Form

I have a model in an extension. I want to add a new database attribute and make this value editable through Magento admin using Varien_Data_Form. I have added the field to the database through ...
dsplynm's user avatar
  • 431
0 votes
2 answers
3k views

how add multiple tabs in adminsection of a custom module in magento

I am trying create an custom module and it have multiple tabs in admin section like product module . Issue i did not showing any tabs content from second tab ,like second tab content data is ...
Amit Bera's user avatar
  • 77.2k
2 votes
1 answer
5k views

Custom admin-grid multiselect preselect saved values

I have a custom backend-grid for some shipping-methods and I have the following problem: Everytime I want to edit one of my grid-entries, the country-multi-select is resetted to blank. I´ve been ...
Peter Ukena's user avatar
1 vote
2 answers
985 views

Add JavaScript Tag on severals pages via a Magento custom module + Back Office

I'm trying for hours to create a Magento custom module which add a JavaScript Tag on only several pages of the website. The Js script that I would add in my pages must allow to get back values from ...
jt.vervliet's user avatar
2 votes
1 answer
1k views

Use Website/Default checkbox for Mage_Adminhtml_Block_Widget_Form field

I have a form in the admin section that is dealing with a custom entity. This entity has a main table and then a table to store options on a store level. I am wondering if it is possible to use the ...
David Manners's user avatar
2 votes
3 answers
1k views

How can i make the preview image bigger?

I am making a module that will pretty much do the same with the catalog->product manager do. In my module i need to upload an image.Everything is fine so far.The problem is that i can't find a way ...
vbak's user avatar
  • 762
6 votes
1 answer
6k views

How to detect a change in data inside the tab in custom admin module [closed]

While editing the elements in the custom admin form, how can I check whether the form has been edited to the last saved data of the form? Is there any way I can check this using any inbuilt Magento ...
Akash Pius's user avatar
6 votes
1 answer
16k views

How to create forms for a custom adminhtml module?

Synopsis I have a custom module where I would like to upload files to products and optionally store a name/label, description and visibility options for each file. I am stuck at creating my own form,...
Ash's user avatar
  • 1,746
3 votes
2 answers
6k views

sorting and filtering not working in custom admin module

I am trying to implement an admin module in magento which has a grid in the first page and grids in the tabs while editing the grid entities. The main grid works fine, but the grids in the tabs are ...
Akash Pius's user avatar
4 votes
1 answer
1k views

How to show custom admin form tabs conditionally?

I need to show two tabs in admin custom form in which 2nd tab will only visible after I save the contents of first tab. Any one can tell me the way to do this. This is what I have - protected ...
Tejas Shah's user avatar

1
8 9 10
11
12