• Resolved jcsc

    (@jcsc)


    Hello,

    Following a new process, we have to ask user to complete a form.
    We have 12 questions if the user answer no to all the questions then
    He will have a message.

    My problem is that he can answer yes to one or more questions and i was not able to find a solution.

    I find a way when if the user respond yes to one of the questions one message is display.
    But i could not find the way to proceed for when the user respond yes …

    I’ve read this part

    if a=1 OR b=2 then, show [group x]

    This is more straightforward, as OR conditions are assumed. Giving this form:

    [select a “1” “2” “3”]
    [select b “1” “2” “3”]
    [group x]TADA![/group]

    You can simply use these conditions:

    if [a] equals “1” then show [x]
    if [b] equals “2” then show [x]

    But did not understand … 🙁

    I’ve tried this

    if [QS-1] equals “Oui”
    or [QS-2] equals “Oui”
    or [QS-3] equals “Oui”
    or [QS-4] equals “Oui”
    or [QS-5] equals “Oui”
    or [QS-6] equals “Oui”
    or [QS-7] equals “Oui”
    or [QS-8] equals “Oui”
    or [QS-9] equals “Oui” then show [QSO]

    but does nt work ..

    Could you please give me a hand for this issue ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    should be like this:

    if [QS-1] equals "Oui" then show [QSO]
    if [QS-2] equals "Oui" then show [QSO]
    if [QS-3] equals "Oui" then show [QSO]
    if [QS-4] equals "Oui" then show [QSO]
    if [QS-5] equals "Oui" then show [QSO]
    if [QS-6] equals "Oui" then show [QSO]
    if [QS-7] equals "Oui" then show [QSO]
    if [QS-8] equals "Oui" then show [QSO]
    if [QS-9] equals "Oui" then show [QSO]
    Plugin Author Jules Colle

    (@jules-colle)

    Or in case you would like to show the message only if the answer is “No” to every single question, you need to create your form like this:

    {{ YOUR FIELDS HERE }}
    [group QSO1][group QSO2][group QSO3][group QSO4][group QSO5][group QSO6][group QSO7][group QSO8][group QSO9]
    {{ YOUR MESSAGE HERE }}
    [/group][/group][/group][/group][/group][/group][/group][/group][/group]

    And then use these conditions:

    if [QS-1] equals "Non" then show [QSO1]
    if [QS-2] equals "Non" then show [QSO2]
    if [QS-3] equals "Non" then show [QSO3]
    if [QS-4] equals "Non" then show [QSO4]
    if [QS-5] equals "Non" then show [QSO5]
    if [QS-6] equals "Non" then show [QSO6]
    if [QS-7] equals "Non" then show [QSO7]
    if [QS-8] equals "Non" then show [QSO8]
    if [QS-9] equals "Non" then show [QSO9]
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Function OR’ is closed to new replies.