Skip to Content
NSUI

Checkbox

Checkbox or switch that submits `T` when checked.

Use a checkbox for a yes or no value. Add switch for a toggle switch.

Switch

Disabled

Form value

When checked, the checkbox submits value, which is T by default. When unchecked, it submits nothing.

HTML
<form method="post">
  <nsui-checkbox name="custpage_approve" label="Approve"></nsui-checkbox>
  <nsui-checkbox name="custpage_tier" value="gold" label="Gold tier"></nsui-checkbox>
</form>

In NetSuite

Set field to bind the checkbox to a native body field.

HTML
<nsui-checkbox field="shipcomplete" switch></nsui-checkbox>

The label, the checked state and the disabled state come from the record. Each change writes back with setValue.

API

Attributes

Prop

Type

Events

Prop

Type

Slots

Prop

Type

CSS parts

Prop

Type

NSUI is a community project. It is not an official Oracle NetSuite product. NetSuite is a trademark of Oracle.

On this page