Title: Function OR
Last modified: July 10, 2017

---

# Function OR

 *  Resolved [jcsc](https://wordpress.org/support/users/jcsc/)
 * (@jcsc)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/function-or/)
 * 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](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/function-or/#post-9324997)
 * 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](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/function-or/#post-9325007)
 * 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.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/function-or/#post-9325007)
 * Status: resolved