Select a Dropdown value

Home Forums Quform WordPress Select a Dropdown value

This topic is: resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14709
    bfagundes
    Participant

    Hey Guys,

    Is there a way to select a value on a dropdown based on the value of another dropdown? I could’n figure out how to do it.

    #14732
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #14762
    bfagundes
    Participant

    Unfortunately that didn’t work. The second dropdown doesn’t change.

    Here’s what changes I’ve made:


    <script>
    jQuery(document).ready(function ($) {
    $('.iphorm_2_13').change(function () {
    var value = $(this).val();
    $otherDropdown = $('.iphorm_2_44');

    if (value == 'Auxiliar de Cozinha') {
    $otherDropdown.val('Sap_Q2');
    } else if (value == 'Auxiliar de Manutenção') {
    $otherDropdown.val('Sap_Q2');
    }
    }).change();
    });
    </script>

    #14764
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #14768
    bfagundes
    Participant

    Now it’s working perfectly. Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy