Title: searchable dropdown
Last modified: July 8, 2024

---

# searchable dropdown

 *  Resolved [qwerty753](https://wordpress.org/support/users/qwerty753/)
 * (@qwerty753)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/searchable-dropdown-2/)
 * **Hi, is it possible to do this with the searchable or non-searchable dropdown
   menu?**
 * **or by code with if else?**
 * Using formulas
 * You might also want to use the value of another field to do a comparison, for
   example, you might want to my sure that the user inputs the email correctly and
   for that, you might want to add an “Email” and “Confirm Email” field and make
   sure they both match. You can do this using formulas like this:
 * 1.- In your condition click on the calculator icon to create a formula
 * ![](https://i0.wp.com/allinoneforms.rednao.com/wp-content/uploads/sites/5/2023/
   02/image-4.png?ssl=1)
 * 2.- Set up the formula that you want to use, in this case, you just want to return
   the “Confirm email” field as you just want to compare that both emails match 
   but if needed you could do more advanced stuff like arithmetical operations.
 * 3.- That’s it! now your custom validation will verify that both fields match 
   and if not it will throw an error message to your users
 * This is how your condition should look:
 * ![](https://i0.wp.com/allinoneforms.rednao.com/wp-content/uploads/sites/5/2023/
   02/image-6.png?ssl=1)
 * and this is the result:
    -  This topic was modified 1 year, 11 months ago by [qwerty753](https://wordpress.org/support/users/qwerty753/).

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [qwerty753](https://wordpress.org/support/users/qwerty753/)
 * (@qwerty753)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/searchable-dropdown-2/#post-17876034)
 * and why doesn’t this code work?
 *     ```wp-block-code
       if([RNF "40" RNF]>=[RNF "67" RNF])return okelsereturn error
       ```
   
 *  Plugin Author [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/searchable-dropdown-2/#post-17876143)
 * Hello!
 * Your configuration looks fine, is it not working? after “and this is the result:”
   i don’t see anything in the thread.
 * Regarding the formula issue, to keep things organized and make it easier for 
   other users with similar issues to find it, could you create another thread for
   that?
 * Regards!
 *  Thread Starter [qwerty753](https://wordpress.org/support/users/qwerty753/)
 * (@qwerty753)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/searchable-dropdown-2/#post-17876191)
 * I don’t know how to delete the topic. For the first topic I didn’t set anything
   it’s just the example in the documentation so I wanted to know if it’s possible
   to do the same thing with two dropdown menus.
 * instead, I don’t know why the code doesn’t work, I inserted it inside a hidden
   text field
    -  This reply was modified 1 year, 11 months ago by [qwerty753](https://wordpress.org/support/users/qwerty753/).
 *  Plugin Author [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/searchable-dropdown-2/#post-17876298)
 * I see, exactly like that is not possible but you can use a formula condition (
   [https://allinoneforms.rednao.com/knowledge-base/conditional-logic/#h-2-creating-a-formula-condition](https://allinoneforms.rednao.com/knowledge-base/conditional-logic/#h-2-creating-a-formula-condition))
 * Your condition should look like this:
 * > [SNAG_Program-0025.png](https://imgur.com/JaPSWbr)
 * Regards!
 *  Thread Starter [qwerty753](https://wordpress.org/support/users/qwerty753/)
 * (@qwerty753)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/searchable-dropdown-2/#post-17876305)
 * OK thanks and for the code?
 *  Plugin Author [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/searchable-dropdown-2/#post-17876468)
 * That is kind of the code. You just need to put [field 1] != [field 2]
 * Regards!
 *  Thread Starter [qwerty753](https://wordpress.org/support/users/qwerty753/)
 * (@qwerty753)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/searchable-dropdown-2/#post-17876491)
 * Yes, I understood this, I was referring to this other topic
 *  why doesn’t this code work?
 *     ```wp-block-code
       if([RNF "40" RNF]>=[RNF "67" RNF])return okelsereturn error
       ```
   
 *  Plugin Author [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/searchable-dropdown-2/#post-17876496)
 * For that one please create another thread for the reasons explained previously.
 * Regards!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘searchable dropdown’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-forms/assets/icon-256x256.gif?rev=2935720)
 * [AIO Forms - Craft Complex Forms Easily](https://wordpress.org/plugins/all-in-one-forms/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-forms/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/searchable-dropdown-2/#post-17876496)
 * Status: resolved