Alignment of fields in filters for repeats

Is there a way to set the alignment of the filter fields? Is centered the only option, i.e. would that require an A12 requirement ticket to implement? In the example below, the options are centered, but it is not nice to have checkboxes not above each other.

Hi @jasper-silent-root

We don’t have a modeling feature to align checkboxes in a repeat but it looks like you are already using some custom code to display two checkboxes in a single row.

We do have modeling options to set the alignment of columns in a repeat. We can choose, default (dependent on the field type), left, center or right. These can be accessed by clicking on the column in the repeat as shown in the picture.

Alternatively, there is an exposition of a boolean that you can model, “switch with values”. You can see this setting in the above picture and results in the following UI.


In this repeat, the columns have the following alignment: Default, Left, Center, Right, Center. The last column shows the boolean with the exposition “switch with values”. Obviously, you may have to change the document models that you are using, but this would be the modeling solution to your issue.

Hi Malcolm, thank you for your speedy reply.

I’m not using custom code here. This is purely modelled. The checkboxes are two different confirms and can therefore be shown in two separate columns in the table.

Hi @jasper-silent-root,

Thanks for the extra information. I fell into the trap of trying to answer your question, before I had fully understood it :person_facepalming:. The alignment for the filter is taken from the alignment used in the header and there is no separate option to model this. This means that in the model that, I showed in my previous reply, the filter options “yes” and “no” are centered. This means that the checkboxes are not over each other as you showed in your original post.

I will ask one of our development team members if it’s possible to change this.

Hi @jasper-silent-root, @malcolm-silver-ice

Are you using CheckboxGroup or individual Checkboxes? I see there is a label Filter so I guess it should be CheckboxGroup. But I tried on Widgets Showcase with both of them and it only happens with individual Checkbox

Hi @dung-early-bud, I cannot tell. I see no option of setting this in my form model. I’m hoping this question can be answered by @malcolm-silver-ice ?

Hi @dung-early-bud
sorry for the slow reply. I was using the Preview App Control so the alignment of the checkboxes shown for boolean and confirm fields when the filter is active is set using the default settings that are used there. Looking back at the first post that @jasper-silent-root made, I think that this screenshot comes from a test environment.

If you can make changes in the widget showcase, is it possible to make these changes in the test environment too?

Hi @jasper-silent-root @dung-early-bud @malcolm-silver-ice
the form engine renders separate checkboxes for boolean and confirm filter cells and therefore they are not aligned properly if the alignment is set to “center”. In my opinion this is a bug in the form engine and should be fixed.
Can you please create a bug ticket for us?

Done: A12-14936