1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

YES/NO element problem after upgrade to 3.9

Discussion in 'Community' started by sob_k, Feb 10, 2019.

  1. sob_k

    sob_k New Member

    Level: Community
    Hi everyone
    I'm using Joomla 3.9.2 PHP ver. 7.2.11 and of course Fabrik 3.9
    After upgrade Fabrik from 3.8.to 3.9, my YES/NO element not working as before. I have hidden some element as usually by JavaScript on load event and on change event. It worked well before upgrade, but now element are always hidden when I change from No to Yes but should be vilible.
    I try checkbox or dropdown and it is working as I want, but te problem is that I'm use planty of YES/NO in my
    several projects. I can not find a problem.
    My themplate using Helix3 - Ajax 2.5.6 and Helix3 Framework 2.5.6 (LT_Optik)
    When I change to default Joomla themplate is workig ok.
     
  2. troester

    troester Well-Known Member Staff Member

    Level: Community
    Did you try with "onclick"?
     
  3. sob_k

    sob_k New Member

    Level: Community
    Yes, I try all methods, I try also new version joomla and 3.8 Fabrik and then it worked.
    I put this simple code
    Code (Text):
      var $type = this.form.formElements.get('pulpit___taknie').getValue();
      alert($type);
    But each evet did not work. It looks like there is no reaction to any evet (change click select ect.)
    Of course on load event it's work ok.
     
    Last edited: Feb 11, 2019
  4. sob_k

    sob_k New Member

    Level: Community
    This is what I've in on load event
    Code (Text):
    var $type = this.form.formElements.get('pulpit___taknie').getValue();
    var element1= Fabrik.getBlock('form_8').formElements.get('pulpit___pole');
    if ($type=='0')
    {
      element1.hide();
    }
    if ($type=='1')
    {
      element1.show();
    }
     
    and this is on change
    Code (Text):
    var $type = this.form.formElements.get('pulpit___taknie').getValue();
    var element1= Fabrik.getBlock('form_8').formElements.get('pulpit___pole');
    if ($type=='0')
    {
      element1.hide();
    }
    if ($type=='1')
    {
      element1.show();
    }
    And This is what I've in console. I can't set pointer event on YES/NO only for element pulpit___pole
    upload_2019-2-11_15-19-8.png
     
    Last edited: Feb 12, 2019
  5. sob_k

    sob_k New Member

    Level: Community
    Friendly bump :)
     
  6. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    I've always used a 'click' event for YesNo elements, and that's still working for me. I have a YesNo on one of my main test forms which shows / hides a group on the form, it's working fine.

    Can you try with 'click', and if that doesn't work, point us at the page.

    -- hugh
     
  7. sob_k

    sob_k New Member

    Level: Community
    Hej,
    I also tried radiobutton and as I gave the grouping did not work either. So it's probably a bootstap problem.
    I did a bit different - radiobutton without grouping + css and javascript and looks similar to yes no
    This, of course, is an emergency exit, it would be great if YES NO worked properly.
     
    Last edited: Feb 23, 2019 at 5:04 PM
  8. sob_k

    sob_k New Member

    Level: Community
  9. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Hmmm, yeah, looks like it might be a Helix template issue. The event delegation we use for the click event just isn't firing, which it should ... which means something, somewhere is stopping the event propagating after the button group overlay is clicked on.

    Can you test with something like Protostar, just to see if it works?

    -- hugh
     
  10. sob_k

    sob_k New Member

    Level: Community
    Yes it work ok for standard joomla template. I try also new version joomla and 3.8 Fabrik and then it worked fine also in Helix3
     
  11. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    So it works in Fabrik 3.8, but not 3.9?

    -- hugh
     
  12. sob_k

    sob_k New Member

    Level: Community
    Yes, that's why I wrote here - I thought that maybe some bug had crept in during the update
     

Share This Page