Skip to main content

Add JavaScript and CSS to Forms/Events the Easy Way

Slate provides an "easy button" to add scripts and CSS to a form. Other, more complex methods involveย injecting content via instruction blocks or form element labels.

JavaScript added to the Custom Scripts tab as described in this article will be wrapped in $( document ).ready() and fire after the page has loaded. This is good for many cases, but may briefly flash the wrong content if, for example, you are trying to alter the page title. Scripts that need to run before the DOM is ready should placed into the page source.

Click Edit Scripts / Styles

Untitled.png

Write or paste JavaScript into the Custom Scripts tab or CSS into the Custom Styles tab.

Untitled.png

Untitled.png