Forum

[SOLVED] Screen cus...
 
Notifications
Retirer tout

[SOLVED] Screen customization : save date on reaching status

2 Posts
2 Utilisateurs
0 Reactions
1,340 Vu
 Dan
(@caccia)
Posts: 340
Honorable Member
Début du sujet
 
[#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


 
Posté : 13/06/2022 8:22 pm
(@babynus)
Posts: 14952
Membre 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 ?


 
Posté : 14/06/2022 10:41 am
Share:
Retour en haut