Checkbox in a single line on a cq:dialog | Community
Skip to main content
elizabethp60981
Level 3
February 6, 2018
Solved

Checkbox in a single line on a cq:dialog

  • February 6, 2018
  • 2 replies
  • 4608 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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

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

2 replies

Amit-Tiwari
Level 4
February 6, 2018

Just add property layout string hbox

smacdonald2008
smacdonald2008Accepted solution
Level 10
February 6, 2018

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

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