Skip to content
🚀 Rapid Application Development with the App Builder

Styling fields with setColumnStyle()

The setColumnStyle() built-in can be used to style individual form fields.

Please read the documentation of this powerful feature carefully before you start using it.

Example of a onRowInit Hook

Change style for anonymous users.

js
((mode, getColumnValue, setColumnValue, setColumnStyle) => {

	if (app.getUsername() === "anonymous") {
		setColumnStyle("dname", {
			control: {
				opacity: 0.4,
			},
			label: {
				fontStyle: "italic",
			},
			input: {
				pointerEvents: "none",
			},
			hint: {
				display: "none",
			},
		})
	}

})