How show phone_mobile of contacs in create view of Call Module? Sugar 7.6

How show phone_mobile of contacs in create view of Call Module?

I'm add calculated value in field related($contacts, "phone_mobile"), but this show phone_mobile only record View.

How show in create view?

Parents Reply Children
  • In On-demand it's not possible. (How did you get the file in the correct place? using a package)

    I'm on an on-premise environment. Not sure how on-demand works.

  • Thank you for help.

    I'm solved with code:

    Event:

    this.model.on('change:parent_name', this.updatePhoneNumbers, this);

    Function:

    updatePhoneNumbers: function() {

            var mobile = 0;

            var work = 0; 

            var obj = this;

            if(this.model.get('parent_type') == 'Contacts' || this.model.get('parent_type') == 'Leads' || this.model.get('parent_type') == 'Prospects')

              var leadId=this.model.get('parent_id'); 

              app.data.createBean(this.model.get('parent_type'),{id:leadId}).fetch({        

                      success:function(lead){ 

                          mobile = lead.get('phone_mobile'); 

                          work = lead.get('phone_work');   

                          obj.model.set('lftm_celular_contato_c', mobile); 

                          obj.model.set('lftm_telefone_contato_c', work);     

                      } 

              });

            }

            else{

              obj.model.set('lftm_celular_contato_c', ''); 

              obj.model.set('lftm_telefone_contato_c', ''); 

            }

        }

    It's work.