• Resolved aleks001

    (@aleks001)


    Hi,

    I would like the search button to not be clickable or not to work till all the drop down fields have been selected. How can I make this happen ?

    Regards,
    Aleks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to replace the code:

    
        submit : function(){
    
          if (!this.firstLevelIsSelected()){
            return;
          }   
    
    

    with:

    
        submit : function(){
    
          if (!this.lastLevelIsSelected()){
            return;
          }  
    
    

    in the file:
    wp-content/plugins/ymm-search/view/frontend/web/main.js

    Stanislav

    Thread Starter aleks001

    (@aleks001)

    That fixed it ??

    Thank you,
    Aleks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable search button until all drop downs have been selected’ is closed to new replies.