Expand my Community achievements bar.

SOLVED

Checkbox in a single line on a cq:dialog

Avatar

Level 3

Hello,

is it possible to put a list of checkbox on a single line on a cq:dialog on AEM6.3?

I have been trying everything to subscribe this with css, but is not working.

Is there some property or some config for this?

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Level 10

YEs - you can put a single checkbox ( granite/ui/components/coral/foundation/form/checkbox) in a dialog

CheckA.png

Basic instructions: (replace the path in this example with a dialog node path)

1 Select the node at:

/apps/Lab2018/components/content/firstcomponent/cq:dialog/content/items/herotext/items/column/items.

  1. Right click and select Create, Create Node. Enter the following values:

•    Name: show

•    Type: nt:unstructured

  1. Click on the following node: /apps/Lab2018/components/content/firstcomponent/cq:dialog/content/items/herotext/items/column/items/ show.
  2. Add the following properties to the show node:

•    text (String) - Show?

•    value (String) – yes (the submitted value when the checkbox is checked)

•    name (String) - ./show (you reference this value to read this value of this component field)

•    sling:resourceType (String) - granite/ui/components/coral/foundation/form/checkbox

View solution in original post

2 Replies

Avatar

Level 4

Just add property layout string hbox

Avatar

Correct answer by
Level 10

YEs - you can put a single checkbox ( granite/ui/components/coral/foundation/form/checkbox) in a dialog

CheckA.png

Basic instructions: (replace the path in this example with a dialog node path)

1 Select the node at:

/apps/Lab2018/components/content/firstcomponent/cq:dialog/content/items/herotext/items/column/items.

  1. Right click and select Create, Create Node. Enter the following values:

•    Name: show

•    Type: nt:unstructured

  1. Click on the following node: /apps/Lab2018/components/content/firstcomponent/cq:dialog/content/items/herotext/items/column/items/ show.
  2. Add the following properties to the show node:

•    text (String) - Show?

•    value (String) – yes (the submitted value when the checkbox is checked)

•    name (String) - ./show (you reference this value to read this value of this component field)

•    sling:resourceType (String) - granite/ui/components/coral/foundation/form/checkbox