ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Open-Source CRM software Forums OroCRM OroCRM – Programming Questions Contact address js requirements

This topic contains 1 reply, has 2 voices, and was last updated by ishakuta ishakuta 2 years, 2 months ago.

  • Creator
    Topic
  • #8062

    Ivan
    Participant

    Hello,

    I need to customize address contact form behavior.
    Now, if user choose country, he need put ZIP code, city, street.
    So I need only country, how I can customize that js form behavior?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #8095
    ishakuta
    ishakuta
    Participant

    Hi, @ivan_dyadin

    You should override Contact bundle and define your own validation group, e.g.:
    validation.yml

    And add form extension to set this validation group to address form.
    Default validation constraints won’t be used after that.

    Not sure it will work as is, but you got an idea.

    Btw: next week we’ll host another webinar about customization techniques and will show how you can do similar overrides yourself.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.