autopopulate in field based on specific dropdown option selection

Home Forums Quform WordPress autopopulate in field based on specific dropdown option selection

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27406
    imz
    Participant

    I have used this to autopopulate based on ONE checkbox option and it works well.
    <script>
    jQuery(document).ready(function ($) {
    $(‘.iphorm_1_47’).click(function () {
    if ($(this).is(‘:checked’)) {
    $(‘.iphorm_1_21’).val($(‘.iphorm_1_10’).val());
    $(‘.iphorm_1_22’).val($(‘.iphorm_1_11’).val());
    $(‘.iphorm_1_23’).val($(‘.iphorm_1_11’).val());
    } else {
    $(‘.iphorm_1_21, .iphorm_1_22, .iphorm_1_23’).val(”);
    }
    });
    });
    </script>

    I need fields to autopopulate based on a specific dropdown option selection.
    How should this code be modified? Thank you for your fast response!

    #27496
    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.

Viewing 2 posts - 1 through 2 (of 2 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