Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <!-- standard form embed -->
<form id="mktoForm_787" class="mktoForm"></form>
<script id="mktoForms2Lib" src="//app-sj01.marketo.com/js/forms2/js/forms2.min.js"></script>
<script>
MktoForms2.loadForm('//app-sj01.marketo.com',  '410-XOR-673', 787);
</script>
<!-- /standard form embed -->

<script id="teknklFormsPlus-tag-0.2.2" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/250687/teknkl-formsplus-tag-0.2.3.js"></script>
<script id="teknklFormsPlus-reorder-0.2.3" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/250687/teknkl-formsplus-reorder-0.2.3.js"></script>


              
            
!

CSS

              
                
              
            
!

JS

              
                MktoForms2.whenRendered(function(form) {
	var formEl = form.getFormElem()[0],
		submitButtonRow = formEl.querySelector(".mktoButtonRow");

	/* 
	 * Usage Example 1: target and move Rich Text Areas as well as fields
	 * For this option, have a hidden field in the Rich Text Area like
	 *   <input type="hidden" name="ConsentDisclaimer">
	 */
	
	/*
	var fieldOrder = [
		submitButtonRow,
		"FirstName",
		"Email",
		"Website",
		"ConsentDisclaimer"
	];	
	FormsPlus.reorderFields(form, fieldOrder);
	*/

	/*
	 * Usage Example 2: reorder with an array of the fields you want to move + their final order
	 * every field doesn't need to be on a given form (non-present fields are simply ignored) 
	 * and fields can be subject to Visibility Rules or Progressive Profiling
	 */
	
	var fieldOrder = [
		"ArchiveMarketoLastDT__c",
		"Email",
		submitButtonRow,
		"FirstName"
	];
	FormsPlus.reorderFields(form, fieldOrder);

	/*
	 * Usage Example 3: reorder below the Submit button 
	 */
	
	/*
	var fieldOrder = [
		submitButtonRow, 
		"FirstName", 
		"Email", 
		"Website"
	];
	FormsPlus.reorderFields(form, fieldOrder);
	*/

	/* 
	 * Usage Example 4: move all the ProgPro fields to top, otherwise preserving order
	 * For this option, create a Rich Text Area with 
	 *   <input type="hidden" name="progpro-separator"> 
	 * located above the ProgPro group
	 */
	
	/*
	FormsPlus.reorderFields(form, [], true);
	*/
});

              
            
!
999px

Console