Use the checkbox
field type for a field which can either be checked or unchecked.
Create the checkbox
field type using
You appear to be a bot. Output may be restricted
bw_register_field( "_oik_api_deprecated_cb", "checkbox", "Deprecated?" ); bw_register_field_for_object_type( "_oik_api_deprecated_cb", "oik_api" );
Form display
When displayed in the Fields meta box or [bw_new] it appears like this.
bw_fields display
When displayed by [bw_fields] it appears like this.
Notes
If you make this field a #required field then the user will have to check it before continuing. Use this when requesting users to agree to Terms and Conditions.