Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <script>MktoForms2.loadForm("//", "410-XOR-673", 369);</script>
<form id="mktoForm_369">



                .mktoForm {
		margin: 20px;
		padding: 20px;
		border: 1px solid gray;
		border-radius: 6px;
	  background-color: beige;



                MktoForms2.whenReady(function(form) {
	var formEl = form.getFormElem()[0],
		arrayFrom =[].slice);

	// array of checkbox groups, each group defined by CSS selectors string
	// maxChecked is the max # of elements that can be checked at once
	// minChecked the min (obvs.)
	// errorFocusSelector is where to put the error arrow/hint
	var checkboxGroups = [
			cssSelector: "#IsTestContact__c, #Email_was_deleted__c, #ContactReq__c",
			minChecked: 1,
			maxChecked: 2,
			errorMessage: "Please select at least 1 and at most 2.",
			errorFocusSelector: ".mktoFormRow:nth-of-type(1) fieldset legend"

	// when the max checked is reached, disable remaining 'boxes in the group
	arrayFrom(checkboxGroups).forEach(function(group) {
		var groupEls = formEl.querySelectorAll(group.cssSelector);
		arrayFrom(groupEls).forEach(function(el) {
			el.addEventListener("click", function(e) {
				var numChecked = arrayFrom(groupEls).filter(function(itm) {
					if (itm.checked) return true;
				arrayFrom(groupEls).forEach(function(el) {
					el.disabled = numChecked == group.maxChecked && !el.checked;
	// check min checked at validate time
			if (!native) return;
	    arrayFrom(checkboxGroups).forEach(function(group) {
		    var groupEls = formEl.querySelectorAll(group.cssSelector),
						numChecked = arrayFrom(groupEls).filter(function(itm) {
					    if (itm.checked) return true;
				if (numChecked < group.minChecked) {
				} else {