Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1348255
    charbusch
    Participant

    I have some javascript that is loaded for a gravity form. It does not work when X-theme is activated. I have disabled all plugins and have not found any other conflicts.

    #1348262
    charbusch
    Participant
    This reply has been marked as private.
    #1348690
    Rad
    Moderator

    Hi there,

    Thanks for posting in. Change your javascript code to this

        jQuery(document).ready(function($){
    
            jQuery('#input_10_84').on('change', function() {
                //get selected value from drop down;
                var selectedValue = jQuery("#input_10_84").val();
                var valueone =selectedValue.split('|')[0];
                var valuetwo =selectedValue.split('|')[1];
                var valuethree =selectedValue.split('|')[2];
                var valuefour =selectedValue.split('|')[3];
                var valuefive =selectedValue.split('|')[4];
                var valuesix =selectedValue.split('|')[5];
                var valueseven =selectedValue.split('|')[6];
                //populate the last row of list with the selected drop down value
                jQuery("#input_81_1").val(valueone);
                jQuery("#input_81_2").val(valuetwo);
                jQuery("#input_81_3").val(valuethree);
                jQuery("#input_81_4").val(valuefour);
                jQuery("#input_81_5").val(valuesix);
                jQuery("#input_81_6").val(valuefive);
                jQuery("#input_81_9").val(valueseven);
            });
        });

    Hope this helps.

    #1349021
    charbusch
    Participant

    Thanks so much, that did help me by taking another look at that js. I cleaned it up some more (I did need to have that :last element in there) and it works great.

    #1349327
    Rad
    Moderator

    You’re so much welcome!

  • <script> jQuery(function($){ $("#no-reply-1348255 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>