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.
<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.
<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
Card and Grid
Card surface and a responsive grid for fields.
Data Grid
Sublist-style data grid with sorting, search, paging, totals and inline editing.
NSUI is a community project. It is not an official Oracle NetSuite product. NetSuite is a trademark of Oracle.