/*

  This is a JavaScript bookmarklet that fills in forms with dummy data for you.

  Written by KRUSH.

  To use it:

  1. Minify all the JavaScript onto one line using http://jscompress.com/
      - Note that the one line of JavaScript must start with "javascript:"
  2. Bookmark any page in you browser
  3. Edit the bookmar and set the URL to the one line of minified javascript
  4. When on an Optimizely page click the bookmark and boom!

*/
javascript: (function(window, document, $) {
    var firstName,
        lastName,
        role,
        phone,
        email,
        date,
        timestamp,
        website,
        title,
        company,
        pword;
    firstName = 'Bradley';
    lastName = 'Heinz test';
    phone = '6309998082';
    pword = 'ks93+-93KLI';
    role = 'software engineer';
    date = new Date();
    timestamp = date.getFullYear() + "" + date.getMonth() + "" + date.getDate() + "" + date.getHours() + "" + date.getMinutes() + "" + date.getSeconds();
    email = firstName + '+test' + timestamp + '@optimizely.com';
    website = 'bradleyheinz.com';
    title = 'Marketing engineer';
    company = "Optimizely";
    numOfCustomers = "5,000-9,999";
    partnerReason = "building out a world-class optimization organization";
    partnerBuyer = "Marketing";;
    //populate name fields
    $('[name="first_name"]').val(firstName);
    $('[name="role"]').val(firstName);
    $('[name="last_name"]').val(lastName);
    $('#Tech_Partner_Number_of_Customers__c').val(numOfCustomers);
    $('[name="Tech_Partner_goal_for_partnership__c"]').val(partnerReason);
    $('[name="name"]').val(firstName + ' ' + lastName);
    $('[name="Travel_target__c"]').prop('checked',true);
    $('[name="Tech_Partner_Want_to_Build_Integration"]').prop('checked',true);
    $('[name="Tech_Partner_Primary_Buyer__c"]').val(partnerBuyer);
    //populate company fields
    $('[name="company_name"]').val(company);
    $('[name="company"]').val(company);
    //populate title fields
    $('[name="title"]').val(title);
    //populate email fields
    $('[name="email_address"]').val(email);
    $('[name="email"]').val(email);
    //populate phone fields
    $('[name="phone_number"]').val(phone);
    //populate website/url fields
    $('[name="website"]').val(website);
    $('[name="url-input"]').val(website);
    //populate pword fields
    $('[name="password"]').val(pword);
    $('[name="password1"]').val(pword);
    $('[name="password2"]').val(pword);
})(window, document, jQuery);

@@ -1287,18 +1287,217 @@
 keting%22;
+%0A    address = %22631 Howard St., Suite 100%22;%0A    city = %22San Francisco%22;%0A    state = %22CA%22;%0A    zip = %2294105%22;%0A    country = %22USA%22;%0A    existingClients = %22CNN, Doctors Without Borders, Hillary Clinton%22
 ;%0A
-
     //po
@@ -1646,75 +1646,8 @@
 e);%0A
-    $('#Tech_Partner_Number_of_Customers__c').val(numOfCustomers);%0A
     
@@ -1883,24 +1883,46 @@
 gration%22%5D').
+filter('%5Bvalue=yes%5D').
 prop('checke
@@ -2260,36 +2260,455 @@
  $('
-%5Bname=%22email%22%5D').val(email);
+#Tech_Partner_Number_of_Customers__c').val(numOfCustomers);%0A    $('%5Bname=%22email%22%5D').val(email);%0A    $('%5Bname=%22address%22%5D').val(address);%0A    $('%5Bname=%22city%22%5D').val(city);%0A    $('%5Bname=%22state%22%5D').val(state);%0A    $('%5Bname=%22zip%22%5D').val(zip);%0A    $('%5Bname=%22country%22%5D').val(country);%0A    $('%5Bname=%22Existing_customers_using_Optimizely__c%22%5D').val(existingClients);%0A    $('%5Bname=%22has_immediate_project__c%22%5D').filter('%5Bvalue=yes%5D').prop('checked', true);%0A%0A%0A
 %0A   

Update form filler to fill both partners/tech and partners/solutions forms