This topic is locked

Add current date after signing on signature pad

5/7/2022 08:26:17
PHPRunner General questions
J
jianwong author

I use signature pad plugin in a form. Upon signing the pad, how could it auto fill the Date field with current date?
Appreciate it anyone can share how to achieve this. Thank you
img alt
.

Sergey Kornilov admin 5/7/2022

I don't think this is possible. You cannot possibly know if user already finished signing or still in the process.

I think the easiest way is to populate this date field behind the scene in events like BeforeAdd/BeforeEdit.

$values["DateField"]=now();