• Resolved qwerty753

    (@qwerty753)


    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 8 months ago by qwerty753.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter qwerty753

    (@qwerty753)

    and why doesn’t this code work?

    if([RNF "40" RNF]>=[RNF "67" RNF])
    return ok
    else
    return error
    Plugin Author EDGARROJAS

    (@edgarrojas)

    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

    (@qwerty753)

    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 8 months ago by qwerty753.
    Plugin Author EDGARROJAS

    (@edgarrojas)

    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)

    Your condition should look like this:

    Regards!

    Thread Starter qwerty753

    (@qwerty753)

    OK thanks and for the code?

    Plugin Author EDGARROJAS

    (@edgarrojas)

    That is kind of the code. You just need to put [field 1] != [field 2]

    Regards!

    Thread Starter qwerty753

    (@qwerty753)

    Yes, I understood this, I was referring to this other topic

    why doesn’t this code work?

    if([RNF "40" RNF]>=[RNF "67" RNF])
    return ok
    else
    return error
    Plugin Author EDGARROJAS

    (@edgarrojas)

    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.