Skip to content

Widget instructions #1

@sinak

Description

@sinak

Need to have a widget.js that gets called.

Would look something like:

<script async="true" type ="text/javascript"> var tfrce_config = { campaign: 'tpp', // no default base_css: true, //default is true zip_in_web_form, 'false', //default is yes custom_css, 'http://blah.com/form.css', //default is none title: 'Call your representatives now', // default is this. iframe_container_css: 'position:fixed;width:100%;bottom:0;left:0;z-index:100000; padding: 0 20px;-webkit-box-sizing: border-box; -moz-box-sizing: border-box;' // default is this call_script_html: 'Hi, my name is _____ from _____, and I'm one of your constituents. I'm calling to ask that you not support <strong>fastracking the TPP</strong>. The TPP would blah blah blah.' // no default }; </script>

It would then insert a minimally styled div in the same location with the call tool. After user presses call and if the forms validate, it would submit to call tool and validate, show the call message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions