5

I was wondering if there is a full proof method for finding all used_in_forms params of eav attribute which is specified in InstallData.php to create all kind of attributes for a form or maybe someone can list all the used_in_forms for all default magento forms.

Any help would be appreciated.

6

You can get all used_in_forms in magento by typing below query,

Used in form customer attribute:

SELECT DISTINCT form_code FROM customer_form_attribute WHERE 1

    adminhtml_checkout
    adminhtml_customer
    adminhtml_customer_address
    checkout_register
    customer_account_create
    customer_account_edit
    customer_address_edit
    customer_register_address
  • Thankyou for your reply. Can you also include "used_in_forms" for product attributes in your reply? – Vivek Kumar Jan 8 '18 at 11:39
  • for product attributes you can find Stores -> Product attributes – Rakesh Jesadiya Jan 8 '18 at 12:11
  • "used_in_forms" is not used for product attributes .. – Vivek Kumar Jan 10 '18 at 13:35
  • something I have noticed: adminhtml_customer, adminhtml_customer_address are not displayed on the magento admin in the "Forms to Use In" when you edit an attribute – Radu Sep 24 '18 at 20:57

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.