{today} Merge Tag (multiple page)

Hello,

Im using the merge tag {today:format:d/m/Y\ \a\t\ H:i:s} on a multi page quiz forum without using the quiz addon, to messure the time, im using the merge tag on first page and on the end of the quiz. The problem now is that its populate the same date and time in the end as on the first page.

Is there a workaround for this?

Hello. The merge tags are evaluated when the form is first loaded, so the merge tag will be populated with the same value on all pages (all pages are not displayed, but the merge tag is replaced when the form is first loaded.)

You can use the merge tag for the start time (that will be the time the page was loaded into the browser. To capture the end time, take a look at gform_pre_submission:

With that filter, you can capture the time when the form is submitted, so you will have a start and end time separately. If you have any other questions, please let us know.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.