• Hello,

    I have a conflic with the module ninja form.
    I have a function that recovers the value of a select but this does not work :

     jQuery( document ).ready( function( $ ) {
                    var jBox = jQuery( '.nf-insert-form' ).jBox( 'Modal', {
                        title: 'Insert Form',
                        position: {
                            x: 'center',
                            y: 'center'
                        },
                        closeButton: 'title',
                        closeOnClick: 'overlay',
                        closeOnEsc: true,
                        // theme: 'TooltipBorder',
                        content: jQuery( '#nf-insert-form-modal' ),
                        onOpen: function() {
                            jQuery( '.nf-forms-combobox' ).combobox();
                            jQuery( this )[0].content.find( '.ui-autocomplete-input' ).attr( 'placeholder', 'Select a form or type to search' );
                            jQuery( this )[0].content.css( 'overflow', 'visible' );
                            jQuery( this )[0].content.find( '.ui-icon-triangle-1-s' ).addClass( 'dashicons dashicons-arrow-down' ).css( 'margin-left', '-7px' );
                        },
                        onClose: function() {
                            jQuery( '.nf-forms-combobox' ).combobox( 'destroy'  );
                        }
                    });
    
                    jQuery( document ).on( 'click', '#nf-insert-form', function( e ) {
                        e.preventDefault();
                        var form_id = jQuery( '#nf-form-select' ).val();
                        var shortcode = '[ninja_form id=' + form_id + ']';
                        window.parent.send_to_editor( shortcode );
                        jBox.close();
                        jQuery( '#nf-form-select' ).val( '' );
                    } );
                } );

    Can you help me to correct this problem ?

    Thanks you

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Conflict with module Ninja form’ is closed to new replies.