Form - Many-to-many relationship

Hi!

I have a form with related checkbox,

the checkbox contains records from another table (mysql) and I need to hide one of them.

image

is there any way to do this?

You can hide it in jQuery or modify the SQL Select statement to exclude it

will you have an example that you can provide?

Wich one, jQuery or SQL

can you share both? I can’t find where to modify the sql

in onScriptInit, get the checkbox ID with inspect, this example will hide the second box

?>
<script>
$(document).ready(function() {
$(’#id-opt-groups-1’).hide();
});
</script>
<?php

or SQL

This example will remove group with id 3

2 Likes

thank you very much jlboutin60! both worked for me :smiley: