Does anyone know why it sometimes gives an error when sending a Smart Form?
I have tested it several times by filling in the fields with the same values and sometimes it displays the sending message successfully and at other times it gives an error, however it always sends normally.
You shouldn’t copy the smart-forms file, make changes and add it again. When the app detects a smart form in your site, it automatically adds the smart-forms js file that handles the form(s). When you add your own version of it, this results in everything needed to parse/send the form being done twice which ultimately leads to wrong messages. The way to fix it is to delete your customized smart-forms file.
We are working on allowing users to customize the success/error messages, this will eliminate the need to customize it yourself. Hope this helps!