Giter Site home page Giter Site logo

forms_3d7k's Introduction

Rotive IO Forms for Pardot

Overview

Rotive forms for Pardot is a simple script and markup based on Bootstrap and can be employed within a Pardot webform with ease and little, to no, dependencies.

Installation

CDN (edge/development)

<script src="https://cdn.jsdelivr.net/gh/rotiveio/forms@master/dist/forms.js"></script>

CDN (latest major release)

<script src="https://cdn.jsdelivr.net/gh/rotiveio/forms@latest/dist/forms.min.js"></script>

CDN (patched releases)

<script src="https://cdn.jsdelivr.net/gh/rotiveio/[email protected]/dist/forms.min.js"></script>

Getting Started

To initialize the library, add this basic boilerplate after the script call.

Rotive.init();

For full layout/form code, please refer to these files:

/dist/boilerplate-form.html /dist/boilerplate-layout.html

Customization

The library exposes several useful settings to customize the look and feel of the form to have it fit your site branding.

Confugration options are passed as a JSON object to the required init function on the Rotive object.

Rotive.init({
	// Options here
});

Example

Lets say for example, your primary color is purple (#8b46c7).

Rotive.init({
	primaryColor: '#8b46c7',
	/* ... */
});

Rotive IO Primary color example

As you can see, primary color sets the border of the fields and the primary call to action.

Available options

Option Type Description Default
primaryColor HEX Color of field border and primary CTA #69B4C6
secondaryColor HEX Secondary CTA color. #5c636a
hoverChange Int How much darker the buttons get on hover. Accepts an integer between 0-255. 20
placeholder Boolean When true sets the visibility of the placeholder text, which equals the label text. This option is ignored when labels is true. false
labels Boolean Indicates whether or not the field labels should be visible. true
textColor HEX Color of the body text. #505050
errorColor HEX Color of the error messages. #dc3545

forms_3d7k's People

Contributors

roblesterjr04 avatar trellixvulnteam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.