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 : save date on reaching status

2 Posts
2 Users
0 Reactions
1,366 Views
 Dan
(@caccia)
Posts: 340
Contributor
Topic starter
 
[#8309]

Hello,

For some detailed tracking, I would like to add a customization to automatically save the date when a custom status is reached. Same as what is done for 'done date', 'handled date', etc.

I've succesfully gotten this far :

###EVAL###($this->idStatus==20)?date("Y-m-d"):null;

This works if the field is read-only, but I would like to save the value while allowing a user to update it manually if needed.
Is that possible ? 

Thanks


 
Posted : 13 Jun 2022 20H22
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

No, it's not possible.
Behavior for default value is :
 - if field is readonly, it is calculated at each save
 - else it is calculated only on first save, to set default value.
If both user can change it, and it is calculated, when would you know what value ot store ?


 
Posted : 14 Jun 2022 10H41
Share:

Scroll to Top