Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request for minimum number of answers #31

Open
JelleK4NL opened this issue Feb 12, 2023 · 5 comments
Open

request for minimum number of answers #31

JelleK4NL opened this issue Feb 12, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@JelleK4NL
Copy link

Trying to use Sexy Polling Reloaded for board elections.
Voters must select 5 out of 9 'answers' but can currently vote with minimum of 1 selected.
Can this parameter be added please?

@Jefferson49
Copy link
Owner

Thank you for filing the issue! Let me ask some questions to better understand it:

  • You have already activated "Multiple Answers" ="Yes"?
  • You have set "Number Options" to 5?
  • You want the users to provide a minimum of 5 votes in parallel?
  • Less than 5 parallel votes should be rejected?

@JelleK4NL
Copy link
Author

Yes. Enabled "Multiple Answers".
Indeed Number options is 5.
User should select (in this case) 5 out of 9 options.
With selecting a sixth, they will get a warning but not if they select less than 5.
Maybe a gray button as long as no 5 are selected.
Thanks! Jelle

@Jefferson49 Jefferson49 added the enhancement New feature or request label Feb 17, 2023
@Jefferson49
Copy link
Owner

Thank you for providing the details! The idea behind the feature request is now very clear to me.

While diving into the code and thinking about some options to implement this, I found out that it needs more changes than expected on first view: database layout, data model, backend code, front end code, front end JavaScript, front end message. Therefore, I tag it as an enhancement and keep it in the list for future extension of the plugin, but will not implement it on short term.

@JelleK4NL
Copy link
Author

Hi Jefferson,
No problem! Thanks for looking into this.
Few other ideas for future releases:

  • Multiple awnsers, the each awnser has its own colour check mark. Would rather just have 1 colour for all.
  • Post voting message: being able to change the text the user get to see when casting his/her vote.
  • Somehow I was not able to use code in the text of the awnser. Like the sample content has, I could not do the same. Could have to do maybe with my Joomla installation.
    KR
    Jelle

@Jefferson49
Copy link
Owner

Multiple answers, the each answer has its own colour check mark. Would rather just have 1 colour for all.

It needs some changes to introduce an additional option, but I consider it rather as a nice to have feature.

Post voting message: being able to change the text the user get to see when casting his/her vote.

Can you describe in more detail? I think after "regular" votes, there is no message. Do you want to change the text of warning messages if the vote was not accepted?

Somehow I was not able to use code in the text of the awnser. Like the sample content has, I could not do the same. Could have to do maybe with my Joomla installation.

I can reproduce that it is not working. If entering some code like "<tag>text<\tag>", the tags are removed and only "text" is included in the answer shown. Surprisingly, this is already the case in the original plugin in Joomla 3. I will create a separate issue for that and will do further checks about the root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants