searchable dropdown | WordPress.org

[ad_1]

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

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:

and this is the result:

  • This topic was modified 53 minutes ago by qwerty753.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer