• I am creating a site that will display an accreditation that depends on the user’s answers. For example, depending on a company’s answer to 100 questions, the result will be a distinction, displayed in a public table, as to whether the company is:

    Pet first
    Pet forward
    Pet friendly

    If the company answers yes to 90+ questions, then they are Pet first. If they answer yes to 70 – 89 questions, Pet forward, etc.

    How can I display in a field that the public will see that the company is Pet forward because they answered yes to 76 questions, even though the public may not see the company’s answers to the questions?

    So:

    Bob’s Brewing
    Austin Texas
    Pet forward company

Viewing 2 replies - 1 through 2 (of 2 total)
  • Good Day dear Bob,

    many thanks for stepping up the plate with this awesome idea. I like them very very much.

    At the moment i cannot say if this is possible with the participants-database.
    I hope that Roland will appear here – and will help us out in this thread.

    I hope that he will have good news – and some ideas how to achieve this.

    Again – many thanks for sharing with us your ideas.
    I am a long time user of the great participants-database
    and i am very very happy with this. It is awesome

    Greetings
    TangerMaroc

    Plugin Author xnau webdesign

    (@xnau)

    This is possible by defining a field which has the purpose of displaying the company’s stance based on the survey responses. I suggest defining the field as a radio button with your 3 possible values as the field options. It should be a read-only field so the value can’t be changed directly.

    Then, what you will need to do is set up some custom code to tell the field what value to display for a particular company. This custom code will need to have access to the survey results.

    I can’t get too detailed here, this will obviously require coding skills, and you will need to come up with the actual code yourself.

    I have an article that explains how to set up a custom form element which explains how to set up the code to tell the field what value to display.

    Creating Custom Form Elements

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display result based on user answers’ is closed to new replies.