guest-entries icon indicating copy to clipboard operation
guest-entries copied to clipboard

How to set postDate in submission

Open uksitebuilder opened this issue 5 years ago • 1 comments

Hi,

I have guest entries being submitted but disabled by dfault (so they can be checked before being published)

However, the post Date appears to be blank.

How can I set the date in the form to the date is the date/time as of the submission?

uksitebuilder avatar May 05 '20 08:05 uksitebuilder

<input type="hidden" name="postDate" value="{{ now|date("Y-m-j H:i:s") }}" />

billymedia avatar Oct 11 '22 16:10 billymedia

Billy’s answer is correct!

We’ve added all the properties that can be sent with a submission to the readme, including postDate and expiryDate.

AugustMiller avatar Dec 14 '22 23:12 AugustMiller