Forums Forums Search & Filter Pro Allowing for all tickboxes to be clicked at once

Viewing 10 posts - 11 through 20 (of 25 total)
  • Trevor
    #62594
    This reply has been marked as private.
    Anonymous
    #62596
    This reply has been marked as private.
    Anonymous
    #63058

    Hi Trevor, have you had a chance to speak to your colleague about this?

    Best wishes,

    Joe

    Trevor
    #63063

    Hi

    Right now he is very busy finishing coding on the next release, after which we can go through the outstanding threads, like yours.

    Trevor
    #63250

    Hi

    Ross had a look this morning. He says you are loading your code in the loop, where it needs to be at page level. He suggests you move the code to an external js file and enqueue it from the theme functions.php file.

    As a thought. If you inspect the code of an S&F form you will see that it is made from a series of <li> blocks. If you open one of those in the inspector then watch an ajax submission of the form, you will see that the <li> itself is not affected, but its contents are. You have been placing the extra tick box inside an existing <li>, and so it gets wiped. However, make your own <li> before the one you want it before, and that will not be touched by Ajax. Use styling to make it LOOK part of the list.

    Anonymous
    #65433

    Thanks Trevor – sorry for the delay in getting back to you. I’ve tried to load it using enqueue script but that’s still not working.

    The page is here: http://neweconomics.org/search/
    and the file is here: http://neweconomics.org/wp-content/themes/nef-website/static/public/js/collapsable.js

    Let me know if there’s anything else I can do.

    Best wishes,

    Joe

    Anonymous
    #65442
    This reply has been marked as private.
    Trevor
    #65447

    Hi Joe

    So, you loaded the js file from the theme functions.php file. I can see it loading on the page. Before using S&F at all, is it doing what it is supposed to? I mean, what is it supposed to do to the virgin page before a user touches the form? And have you now done to try and make it work up to that point?

    Anonymous
    #65451

    Hi Trevor, yes – it console.logs and the rest of the events work as expected.

    Best wishes,

    Joe

    Trevor
    #65453

    So, all that is needed is for it to be reloaded upon our Ajax finish?

Viewing 10 posts - 11 through 20 (of 25 total)