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 - set date automatically ?

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

Hi,

Is it possible using the Screen Customization plugin to automatically set the value of a date field ?

In our process, we have a proofreading phase before a document can be sent for approval.
My requirement is the following : 
- add a "proofreading date" field on Documents.
- when the document reaches the "review completed" status, automatically set the "proofreading date" to the current date.

Would this be possible ?

Regards

 


 
Posted : 03 Sep 2021 19H01
(@babynus)
Posts: 14952
Member Admin
 

Yes, it is possible with latest version of Screen Customization plugin (I'm not sure it will work with older)
You have to set default value to 

#####EVAL##### ($this->idStatus==99 and $this->proofreadingDate is null)?date("Y-m-d"):null;

(in this exemple, id of status "review completed" is 99
and then set the field proofreadingDate as readonly (othewise default value is evaluated only at creation)


 
Posted : 03 Sep 2021 19H57
 Dan
(@caccia)
Posts: 340
Contributor
Topic starter
 

Wow, amazing 
Thanks !


 
Posted : 03 Sep 2021 20H04
Share:

Scroll to Top