Template Override for Checkbox Element

hdouglas

Member
There does not appear to be a JLayout template available yet for the checkbox element, and I am having difficulties getting a standard template override to be found when using the Form->Element->Checkbox

Can anyone advise which file needs to be replicated to the template override folder and where.
 
I am using a Bootstrap 4 template and the rendering of checkbox elements is not bootstrap 4 compatible, so the need to create an override to allow the element to be shown in a suitable manner. The reason for wanting to use checkbox is that there are a number of answers for each element and the user has the ability to select more than 1. Whilst this can be achieved through a dropdown type render, it is less user friendly than the checkbox approach.
Principle issue is that the form is split into 2 columns, but the default rending of checkbox elements (in a bootstrap 4 template) breaks the columns and appears as a single column.
 
Troester did not mention "dropdown", but "dbjoin" aka "databasejoin".

Means that you create a new simple list which you populate with your checkbox labels (and values, if the PK = "id" doesn't do as values.
Then you change the element in your "main" list to type "databasejoin" and join it with your new list. Yes, you can select it to render as checkboxes. And you'll find layout files for it which you can do with what you need.
 
Oh, and since your only issue seems to be the columns not working: that's fixable with CSS only. So, you may as well keep the regular checkbox type of element and do a little CSS override.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top