Field Dynamic Logic for Address Fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • esendino
    Senior Member
    • May 2019
    • 158

    Field Dynamic Logic for Address Fields

    If there a condition for a Address field is to be required under some conditions, that requierement it si not applied.

    In the example below it allows that the field billingAddressStreet be empty regardless the value for Industry

    I tested it with billingAddressStreet in the demo, so this is happening with the last versions
  • esendino
    Senior Member
    • May 2019
    • 158

    #2
    I just saw that this bug only happens if the adress field is a single field in the layout.

    If the individual fields (street, city, etc) are defined in the layout, then it works properly

    Comment

    • yuri
      Member
      • Mar 2014
      • 8453

      #3
      It's not supported at the moment.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • czcpf
        Senior Member
        • Aug 2022
        • 160

        #4
        esendino One workaround is to put your dynamic logic in the Conditions Making the master Address Field 'Invalid'.
        In addition, if you want the 'required' asterisk on the UI, you can check 'required' on for example addressStreetField, and specify the conditions making the field required as shown below. The result will be as as shown in last attachment.


        Click image for larger version

Name:	Screen Shot 2023-02-17 at 10.38.48 AM.png
Views:	259
Size:	106.2 KB
ID:	88207Click image for larger version

Name:	Screen Shot 2023-02-17 at 10.40.50 AM.png
Views:	246
Size:	30.1 KB
ID:	88204Click image for larger version

Name:	Screen Shot 2023-02-17 at 10.46.05 AM.png
Views:	243
Size:	57.1 KB
ID:	88205Click image for larger version

Name:	Screen Shot 2023-02-17 at 10.42.57 AM.png
Views:	234
Size:	36.7 KB
ID:	88206
        Attached Files

        Comment

        • esendino
          Senior Member
          • May 2019
          • 158

          #5
          Thanks. Good workaround

          Comment

          Working...