AnsweredAssumed Answered

address field dependency

Question asked by Adrian Dinu on Aug 3, 2015
Latest reply on Jun 7, 2016 by dkallish
Hi everyone!

I need the "Shipping Address" field in Accounts to be displayed only in certain contitions. Does anyone know how to create a dependency for this field?
I tried from Studio by creating dependencies on the individual fields (street, country, state, ...) but it doesn't work when I add the grouped field to the record view. It's always visible. It works if I add the individual fields separately but I would like to have the grouped field, for the "copy from billing address" checkbox and because it's nicer.
I also tried adding this to the vardefs: 
I added this line to a new php file and put it in custom/Extension/modules/Accounts/Ext/Vardefs/sugarfield_shipping_address.php
Then I performed a Quick Repair and Rebuild and a Rebuild Sugar Logic Functions and it still doesn't work.
Any ideas? Thanks!


PS: I'm on 7.6 PRO