Title: Github fork with some added features
Last modified: August 20, 2016

---

# Github fork with some added features

 *  Resolved [jbuchbinder](https://wordpress.org/support/users/jbuchbinder/)
 * (@jbuchbinder)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/)
 * I forked a copy of the plugin here:
 * [https://github.com/jbuchbinder/salesforce-wordpress-to-lead](https://github.com/jbuchbinder/salesforce-wordpress-to-lead)
 * and added some features, including (but not limited to):
    - “Select” widget support
    - WPFC7 style integration support
    - “Clone” form support
    - Placeholder attributes for text/textarea widgets
 * [http://wordpress.org/extend/plugins/salesforce-wordpress-to-lead/](http://wordpress.org/extend/plugins/salesforce-wordpress-to-lead/)

Viewing 15 replies - 1 through 15 (of 74 total)

1 [2](https://wordpress.org/support/topic/github-fork-with-some-added-features/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/github-fork-with-some-added-features/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/github-fork-with-some-added-features/page/4/?output_format=md)
[5](https://wordpress.org/support/topic/github-fork-with-some-added-features/page/5/?output_format=md)
[→](https://wordpress.org/support/topic/github-fork-with-some-added-features/page/2/?output_format=md)

 *  [redone975](https://wordpress.org/support/users/redone975/)
 * (@redone975)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312684)
 * Any chance you can add a simple checkbox to this copy of the plugin?
 * There are a lot of instances where this would come in handy:
    - Sign me up for newsletters
    - Request a representative to contact me
    - etc
 *  Thread Starter [jbuchbinder](https://wordpress.org/support/users/jbuchbinder/)
 * (@jbuchbinder)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312685)
 * Done, as of [https://github.com/jbuchbinder/salesforce-wordpress-to-lead/commit/a2e7646a0781b866a664e2721d256be784b116cd](https://github.com/jbuchbinder/salesforce-wordpress-to-lead/commit/a2e7646a0781b866a664e2721d256be784b116cd).
 *  [redone975](https://wordpress.org/support/users/redone975/)
 * (@redone975)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312686)
 * Wow, thanks for the quick fix…
 * However, the new “checkbox” option doesn’t appear under the “Add a field” Type…
   Only in the original 13 pre-defined fields (first_name, last_name, email, phone,
   etc).
 *  [redone975](https://wordpress.org/support/users/redone975/)
 * (@redone975)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312687)
 * Do you just need to add it to line 446?
 * row += ‘<td><select name=”add_inputs[‘+i+’][type]”><option>text</option><option
   >textarea</option><option>hidden</option><option>select</option>**<option>checkbox
   </option>**</select></td>’;
 *  [redone975](https://wordpress.org/support/users/redone975/)
 * (@redone975)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312688)
 * Added the checkbox to line 446 and tested it out… It works!
 * Thank you for your help, I really appreciate it.
 *  [redone975](https://wordpress.org/support/users/redone975/)
 * (@redone975)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312690)
 * Update – Instead of adding the code on lines 737 and 738, I revised the following
   code on line 695, so that the checkbox would appear to the left of the label 
   text.
 *     ```
       if($input['type'] != 'hidden') {
       	if ($options['wpcf7css']) { $content .= '<p>'; }
       	if ($input['type'] == 'checkbox') {
       		$content .= "\t\n\t".'<input type="checkbox" id="sf_'.$id.'" class="w2linput checkbox" name="'.$id.'" value="'.$val.'" />'."\n\n";
       	}
       	$content .= "\t".'<label class="w2llabel'.$error.$input['type'].'" for="sf_'.$id.'">'.esc_html(stripslashes($input['label']));
       	if ($input['type'] != 'checkbox') {
       		$content .= ':';
       	}
       }
       ```
   
 *  Thread Starter [jbuchbinder](https://wordpress.org/support/users/jbuchbinder/)
 * (@jbuchbinder)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312692)
 * I adjusted the code on github. Let me know if you have any additional issues.
 *  [sundaymorningclub](https://wordpress.org/support/users/sundaymorningclub/)
 * (@sundaymorningclub)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312693)
 * Do you have a code for a drop menu on this plugin?
 *  Thread Starter [jbuchbinder](https://wordpress.org/support/users/jbuchbinder/)
 * (@jbuchbinder)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312694)
 * If you mean an HTML select control, then yes.
 *  [frank.scott](https://wordpress.org/support/users/frankscott/)
 * (@frankscott)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312695)
 * Are the changes you recently completed in the plugin available on wordpress. 
   I need the check box functionality. I am new to wordpress as well as all the 
   worjk being done in the plugins.
 *  [sundaymorningclub](https://wordpress.org/support/users/sundaymorningclub/)
 * (@sundaymorningclub)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312696)
 * Could some kind sole help me. We have loaded the plugin ont our site
    [](http://www.sundaymorningclub.com/register-for-your-papers-to-be-delivered/)
 * We need to get a dropdown option in one of the forms in order that the input 
   data is correct for salesforce to send different auto response emails with different
   payment links for Chargify.
 * I have downloaded the file from github, and updated the file through ftp for 
   wordpress site, and nothing is different. I am not a developer.
    Can someone 
   please advise or help me sort this out. Many Thanks Gareth.F
 *  Thread Starter [jbuchbinder](https://wordpress.org/support/users/jbuchbinder/)
 * (@jbuchbinder)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312697)
 * Use “select” as the widget type, and set “opts” to be a pipe delimited list of
   options.
 * For example, to get “A”, “B”, and “C”, you’d use “A|B|C” in the opts field.
 * There’s a more complicated syntax if you want the values and labels to be different.
 *  [sundaymorningclub](https://wordpress.org/support/users/sundaymorningclub/)
 * (@sundaymorningclub)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312698)
 * Thanks. where do i do this, is it in the code as I am not a developer?
 *  Thread Starter [jbuchbinder](https://wordpress.org/support/users/jbuchbinder/)
 * (@jbuchbinder)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312699)
 * In the form, in the same way you would declare a text widget, textarea widget,
   etc. There’s an extra option for “select”.
 *  [sundaymorningclub](https://wordpress.org/support/users/sundaymorningclub/)
 * (@sundaymorningclub)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/#post-3312700)
 * I must not have downloaded the update correctly. Can you advise on the link for
   the updates and what to do. Im really grateful for your help

Viewing 15 replies - 1 through 15 (of 74 total)

1 [2](https://wordpress.org/support/topic/github-fork-with-some-added-features/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/github-fork-with-some-added-features/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/github-fork-with-some-added-features/page/4/?output_format=md)
[5](https://wordpress.org/support/topic/github-fork-with-some-added-features/page/5/?output_format=md)
[→](https://wordpress.org/support/topic/github-fork-with-some-added-features/page/2/?output_format=md)

The topic ‘Github fork with some added features’ is closed to new replies.

 * ![](https://ps.w.org/salesforce-wordpress-to-lead/assets/icon-256x256.png?rev
   =2316786)
 * [Brilliant Web-to-Lead for Salesforce](https://wordpress.org/plugins/salesforce-wordpress-to-lead/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/salesforce-wordpress-to-lead/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/)
 * [Active Topics](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/reviews/)

 * 74 replies
 * 9 participants
 * Last reply from: [aswinnair](https://wordpress.org/support/users/aswinnair/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/github-fork-with-some-added-features/page/5/#post-3312790)
 * Status: resolved