Expression Builder - Add date stamp
Original Post by DaleSummers (Imported from Ardevia Forum)
Hi is it possible to update a date field with today's date when a user changes data in a text field?
-
Original Post by Andrii Berezovskyi (Imported from Ardevia Forum)
Hello DaleSummers
Yes this is possible.
You must create calculated expression. Please,
1) Go to Ribbon, Behaviour tab
2) Open calculated expression modal dialog
3) Instead of "Template" choose "Function code" in select
4) Insert code snippet ( replace [[TextField]] using your text field name)
Code:[[TextField]]; return new Date();
5) Press Save , Save formFeel free to contact with us
0 -
Original Post by DaleSummers (Imported from Ardevia Forum)
Thank you Andrii works perfectly :-)
0 -
Original Post by DaleSummers (Imported from Ardevia Forum)
Hi Andrii,
I have only just realised the expression works but is setting it as U.S. format not U.K. which the site is set for.
Does the expression need the format set or is it an app setting?0 -
Original Post by Andrii Berezovskyi (Imported from Ardevia Forum)
Hello DaleSummers
I thinks you can achieve this using standard sharepoint functionality,please see this
Forum post0
Please sign in to leave a comment.
Comments
4 comments