• Resolved ikus1i

    (@ikus1i)


    Hi, I’m looking for a solution regarding the creation of surveys where residents who own a share in the property will participate, where each resident has a different voting weight based on square meters. Unfortunately, I haven’t found a way to utilize the assigned weight in surveys. Is there any way to conduct voting in surveys, somehow utilizing voting weights?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @ikus1i

    Thank you very much for using our plugin. The implementation will depends on your data.

    If every person has associated a weight for a survey with three possible answers. Each time a user votes, you can populate four variables in the database, I will call them A, B, C, and TOTAL.

    If the user selects the first choice, the variables A and TOTAL will be increased in the user weight.

    If the user selects the second choice, you can increase the variables B and TOTAL, and C and TOTAL if the user selects the third choice.

    At the end of the process, you can generate the ranking of the votes by comparing the values A/TOTAL, B/TOTAL, and C/TOTAL. Or if you want them into percentages: A/TOTAL*100, B/TOTAL*100, and C/TOTAL*100

    Best regards.

    Thread Starter ikus1i

    (@ikus1i)

    Hello @codepeople?thank you for help ! I used a simple formula, which I’ll define for each resident.

    PREC((fieldname3-0)*IF(fieldname3==’18’,0.90),2,true)

    one more question to you is it possible to fill out the form only once :)?

    Thread Starter ikus1i

    (@ikus1i)

    Hi, I’d like to ask if it’s possible to fill out the form only once? Can the plugin be connected to registered users using a function?

    Thank you for your help in the previous post. I used the “if” function for multiple residents to determine voting weights.

    example:

    (function(){
    if(fieldname3==18)
    {
    return 1000/124;
    }
    else if(fieldname3==19)
    {
    return 1000/65;
    }

    Plugin Author codepeople

    (@codepeople)

    Hello @ikus1i

    To allow the registered users voting only once you will need the “CFF – Users Permissions” add-on distributed with the Developer and Platinum plugin distributions. Learn more about the “CFF – Users Permissions” add-on by reading the following blog post:

    https://cff.dwbooster.com/blog/2019/07/04/users-permissions

    Your equation is incomplete. Furthermore, in my opinion a better alternative would be to store the users votes weights as users metadata and access them by using the DS fields.

    https://cff.dwbooster.com/blog/2019/02/14/ds

    Best regards.

    Thread Starter ikus1i

    (@ikus1i)

    Hello @codepeople could you tell me if there is a different price if I want to upgrade from the Professional to the Developer version?

    Plugin Author codepeople

    (@codepeople)

    Hi! We’d like to help but we can’t reply about that in this forum. We are not allowed to support any customers in these forums.

    For pro or commercial product support please contact us directly on our site. This includes any pre-sales topics as well.

    Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Voting weight’ is closed to new replies.