Forum

[SOLVED] Screen cus...
 
Notifications
Retirer tout

[SOLVED] Screen customization plugin - get contact phone number

3 Posts
2 Utilisateurs
0 Reactions
1,252 Vu
(@amaz)
Posts: 36
Active Member
Début du sujet
 
[#9549]

Hello,

I regularly use the screen customization plugin, and I'm wondering if it is possible to do what I need.

On the ticket screen, I would like to display the phone number associated with the previously chosen requester. ("Demandeur" in french).

I have found that a calculated field can be parametered with "###EVAL###", but is it possible to retrieve the value of the previous field to get the associated phone number in database ?

Thank you in advance for your help and feedback,

Kind regards,


 
Posté : 20 Août PM 14:088
(@babynus)
Posts: 14952
Membre Admin
 

Yes, it will work, you need to define default value as

###EVAL### $val=SqlList::getFieldFromId("Contact", $this->idContact, 'phone');

and set to readonly so that it is calculated at each save


 
Posté : 20 Août PM 16:088
(@amaz)
Posts: 36
Active Member
Début du sujet
 

Thank you very much, it actually works perfectly well!

Best Regards,

AMAZ


 
Posté : 20 Août PM 16:088
Share:
Retour en haut