6

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.

1 Answer 1

12

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
4
  • Thankyou for your reply. Can you also include "used_in_forms" for product attributes in your reply? Jan 8, 2018 at 11:39
  • for product attributes you can find Stores -> Product attributes Jan 8, 2018 at 12:11
  • "used_in_forms" is not used for product attributes .. Jan 10, 2018 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, 2018 at 20:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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