# Text field

I have a requirement with one text field ,adjacent to the label of text field i need to have a check box of boolean type how can i acheive this?

Thanks..

Discussion posts and replies are publicly visible

Parents
• Hi Srimathi,

try below code

```a!localVariables(
local!text,
local!check,
{
a!sideBySideLayout(
items: {
a!sideBySideItem(
item: a!textField(
label: "TEXT :",

),
width: "MINIMIZE"
),
a!sideBySideItem(
item: a!checkboxField(
choiceLabels: { "" },
choiceValues: { true },
value: local!check,
saveInto: local!text,

),
width: "MINIMIZE"
),
a!sideBySideItem(
item: a!textField(
label: "",
value: local!text,
saveInto: local!text
),
width: "MINIMIZE"
),

},
alignVertical: "BOTTOM"
)
}
)

```

• Hi Srimathi,

try below code

```a!localVariables(
local!text,
local!check,
{
a!sideBySideLayout(
items: {
a!sideBySideItem(
item: a!textField(
label: "TEXT :",

),
width: "MINIMIZE"
),
a!sideBySideItem(
item: a!checkboxField(
choiceLabels: { "" },
choiceValues: { true },
value: local!check,
saveInto: local!text,

),
width: "MINIMIZE"
),
a!sideBySideItem(
item: a!textField(
label: "",
value: local!text,
saveInto: local!text
),
width: "MINIMIZE"
),

},
alignVertical: "BOTTOM"
)
}
)

```

Children
No Data