KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Beselect input filter limit #3152

Open Komuraiah A opened this topic on on Sep 21, 2023 - 1 comments

Komuraiah A commented on Sep 21, 2023

Hi Team, how to add limit for Bselect dropdown checkbox. am sharing reference link. i need like that https://jsfiddle.net/arkadeepde/c9CkG/79/

when i set limit checkbox 4 then after the 4 select check boxes then other checkboxes need not to access.

Sebastian Morales commented on Sep 21, 2023

To achieve that example with BSelect widget you can access BSelect client-side object using its PHP name and set the on change event like this:

<script>
    functoin BSelectChanged() {
        //copy the on change function code here 
        var msg = $("#msg");
        ...        
    }
</script>
<?php
    BSelect::create(array(
        "name" => "multipleBSelect",
        ...
        "onReady" => "function() {
            multipleBSelect.on('change', BSelectChanged); // multipleBSelect is BSelect js object
        }"
    )); 

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Inputs