Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] Screen cus...
 
Notifications
Clear all

[SOLVED] Screen customization plugin - get contact phone number

3 Posts
2 Users
0 Reactions
1,321 Views
(@amaz)
Posts: 36
Active Member
Topic starter
 
[#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,


 
Posted : 20 Aug 2024 14H07
babynus
(@babynus)
Posts: 14966
Main Contributor 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


 
Posted : 20 Aug 2024 16H12
(@amaz)
Posts: 36
Active Member
Topic starter
 

Thank you very much, it actually works perfectly well!

Best Regards,

AMAZ


 
Posted : 20 Aug 2024 16H38
Share:

Scroll to Top