How to Hide/Show Customer attribute when the customer group is switched from general to the wholesale group?.

enter image description here

  • any solution..?
    – Devidas
    Commented May 31, 2021 at 5:33

1 Answer 1


For doing this, firstly you have to create a component for Customer group.

With "initialize" function, you can check the value on page load. If group is "Wholesale", then show the attribute else keep it hidden.

For detecting change event, "onUpdate" function will be used. You can show the attribute using jQuery after detecting the value.

Your Answer

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

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