Auto populate Date field
AnsweredHello,
In a SharePoint list I have a date field called Date. I need to have this field auto populate with the date that the form was filled out.
What is the best way to achieve this ?
Thank you
0
-
Hello,
you can use SRF in NewForm and as initial value set current date "new Date ();" or you can use standard SP Workflow and populate your Date field with the value of Created column.
If you have already a workflow which is starting when the item is created then it is a better way.
0 -
Thanks Senad Omicevic completely right!
In addition to your answer, if you want to set a default date e.g. in a month, you can use the following expressions as an initial value of a field within skybow rich forms:
var result = new Date();
result.setDate(result.getDate() + 15);
return result;
0
Please sign in to leave a comment.
Comments
2 comments