This code works well but I am getting an issue on Safari browser. I tried to resolve it but no luck. Attaching an image of the error. Would be great if you can resolve it. Much appreciated for the work around with the custom form and thanks for the fix.

This code works well but I am getting an issue on Safari browser. I tried to resolve it but no luck. Attaching an image of the error. Would be great if you can resolve it. Much appreciated for the work around with the custom form and thanks for the fix.
