Page 1 of 1

Inline fields when they are checkbox

Posted: 2020-12-22 10:41
by balfons
Hi!

I'm trying to have 2 checkbox fields inline and inside a custom tab. Here is my code:

new AppGiniFields(["water", "gaz"]).inline("Related to", [6, 6]);

Both fields, water and gaz, are a checkbox and when I put them inline only the second one and the label are shown, not inline but one above the other.

Any ideas? Maybe I've missed something?

Thanks in advance

Re: Inline fields when they are checkbox

Posted: 2020-12-22 11:51
by jsetzer
Hi, I am going to set up a test project and do some research on it. Stay tuned...

Re: Inline fields when they are checkbox

Posted: 2020-12-22 12:06
by balfons
Thanks Jan!

Re: Inline fields when they are checkbox

Posted: 2020-12-22 12:24
by jsetzer
Question: Is it possible for you to add a non-checkbox field as first field, for example...

Code: Select all

var dv = AppGiniHelper.dv;
var tab = dv.addTab("tabTest", "Test", "cog", ["name","water","gas"]);
dv.getFields(["name", "water", "gas"]).inline("test", [12, 6,6]);
In this code I have put a normal text input field "name" at the first position. This should work fine.

chrome_vnBJHsPVCW.png
chrome_vnBJHsPVCW.png (2.46 KiB) Viewed 3464 times

Re: Inline fields when they are checkbox

Posted: 2020-12-22 14:50
by balfons
Hi Jan,

I'll see if I can add a text field before checkbo and I will try this solution.

Thanks for the workaround!