SalesforceLabs / survey-force

86 stars 61 forks source link

Survey won't register the answers #129

Closed barbtribs closed 2 years ago

barbtribs commented 2 years ago

Hi guys! I've manually updated from my sandbox to another sandbox to test before going to production. I'm facing an issue when I try to answer old forms as a guest. The form won't go to the thank you page, it redirects me to the link without the case info and when I look at the Survey Taker there is a log, but no answers stored. I'm not facing that issue with new forms. Does anyone know what could be the problem? There are no info in the console log or inspecting elements. I also don't get any error when sending the form, just the redirect. When I answer in internal it works, and when I answer the redirected version, withouth the case info, it also stores the answers. I'll leave some step by step and prints bellow to show what's happening:

  1. Link for the form: https://afyasbqa-grupoafya2020.cs36.force.com/externo/apex/TakeSurvey?id=a0R2h0000016b3gEAA&caId=5002h0000064ZCEAA2
  2. Press send and it redirects to https://afyasbqa-grupoafya2020.cs36.force.com/externo/TakeSurvey?id=a0R2h0000016b3gEAA
  3. Print from the Survey Taker: image
barbtribs commented 2 years ago

Because of some changes with the update, the survey was crashing in validation rules, it was not a problem with the survey itself, but a matter of updating the rules to suit the update.