surveyjs / surveyjs-wordpress

Example of integration SurveyJS: Survey Library and Survey Creator into WordPress
https://wordpress.org/plugins/surveyjs/
36 stars 18 forks source link

Form doesn't store submissions after adding expression currentDate() #50

Closed kuchengrab closed 17 hours ago

kuchengrab commented 4 months ago

Hi, sorry for submitting yet another issue. After fiddleing about with the timestamp thing (#48 / this comment), which I implemented semi-successfully with the expression currentDate(), my form stopped storing any submissions to the database altogether (other forms still worked fine). I tried debugging it for a few hours — deleting the expression, copying the form, testing different browsers and devices. I couldn't get it to work again, though. The worst thing is that you didn't get a clue as a user, that your entry wasn't saved (no error message, nothing). Trying this out on a live site in the middle of our conference registration phase running was a bad idea, obviously, but ... I also lost my confidence in the SurveyJS wordpress plugin at that point. 😞 In the end I spent the night recreating the form with ninjaforms. Now it's ugly, but it works again. Plus I have the automatic email functionality (= feature suggestion) that is great to give participants instant feedback as well as for backup, in case the stored submissions become corrupted. To end this on a less anecdotal note: Here is my form JSON, if you'd like to have a look at it to see whether you can recreate the bug: ras24-survey.json

Best, kuchengrab

JaneSjs commented 3 weeks ago

Hello @kuchengrab, I apologies for missing your inquiry. I regret to hear that your form failed to run during the conference.

Thank you for sharing a survey JSON definiton. I tested it on my end (View Plunker) and confirmed that the expression appears correctly: image

However, we may need to additionally check it on WordPress. I'll reach out to our developers for further clarification. Meanwhile, would you please elaborate on the issue? Please clarify whether you couldn't save the entire form response or this particular expression field with the currentDate() function?

For the record: for bugreports, please feel free to submit a ticket at help desk.

JaneSjs commented 17 hours ago

Hello @kuchengrab, We tried your JSON on our end, however, didn't reproduce the issue on our end. Form results were successfully saved to a database.

We may recommend that you create a new survey and apply the target layout without further modifications such as adding/removing questions.

Thanks