I'm using a frontend form to create an entry with {{ actionInput('entries/save-entry') }}
and would like to be able to use this entry immediately upon redirecting from the submit. From the docs I see that the redirectInput()
function only accepts a url string. Is it possible to get my hands on the newly created entry's id in order to use it in the redirect?
For context, I have a page with a user-operated form which, when submitted, creates an entry that represents the customer's order. And upon submission I want to immediately head to a review page where it displays the new order's details back to them. Is there a better way to go about this flow? The only thing I can think to do is use a hidden field to set a unique hash on the slug which I also use in the url put in the redirect.