How to make a Poll Feature?

I have social app where users can post images, videos, etc.

I’m having a hard time setting it up, so like

Data Type Poll

Data Field: List of Choices

???

not sure what you mean for a poll and posts and images? Is poll static Qs or you want you users to create dynamic ones?

Dynamic isnt ez if you havent done before but writing quickly off the cuff its:

 Poll{
 questions[]
owner
}

question{
   order;
  question text;
 required?;
 answerType;
 answers[]
}

answers{
     order;
     text;
    image;
    linkedQuestion
}

pollSubmission{
     user;
     poll;
    pollResponses[]
}     

pollResponse{
  question;
 answerType;
 pollSubmission (setup dependant);
 answerText;
 answerDate;
answerInt;
 answer
}


1 Like

this looks like a great way to set it up, thank you, and yeah it’ll be dynamic

This topic was automatically closed after 70 days. New replies are no longer allowed.