ssossossossosso

Forums

Forums OroCRM OroCRM – Programming Questions Contact address js requirements

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

  • Creator
    Topic
  • #22362

    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
  • #22363

    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.