hello friends, I am thinking in how hide some empty fields after create a new record of my module...
I am in edit view and I have one flex related field, and I need another more... but I have read in sugar guide that this is not possible..., so I will put three (number that I need) related fields in order to fill only one of these three fields in each record
For example, I have in edit view of my module:
related field 1
related field 2
related field 3
and I create one new record, and I fill related field 1, so I'd like hide the other two related fields .... I think that through logic hook (of kind before save) can do it. Something like:
how could do this in the best way?PHP Code:if(empty(bean->related_field2)){
//action to hide this field
}if(empty(bean->related_field3)){
//action to hide this field
}
Thanks again


LinkBack URL
About LinkBacks



Reply With Quote



Bookmarks