django-survey icon indicating copy to clipboard operation
django-survey copied to clipboard

amend existing survey vs new survey

Open JackBurns1984 opened this issue 10 months ago • 2 comments

Hi, looking for advise over an issues:

At present, if someone is logged in I only have a button to go into the survey and update the existing answers, but can you think of a way to have 2 buttons, 1 to enter a new survey and 1 to amend the existing survey.

I can see the for loop in list.html but wondering how I can "check if data is present" and do an "amend" button and a "new" button.

JackBurns1984 avatar Apr 18 '24 13:04 JackBurns1984

You could check if an answers exists in the survey and add a button for the edit case if that's the case. Pull request welcome :)

Pierre-Sassoulas avatar Apr 18 '24 14:04 Pierre-Sassoulas

good thinking, thank you - now to see where I can pull the answer from 👍 i can see survey.{things} so hopefully in that ball park.

thanks

JackBurns1984 avatar Apr 18 '24 14:04 JackBurns1984