WordPress.org

Ready to get started?Download WordPress

Forums

Easy Sign Up
[resolved] Add more fields (16 posts)

  1. crystal1413
    Member
    Posted 1 year ago #

    Hi,
    how can I add an extra capture field to easy sign up,
    P.s Im not a programmer so i'll need the layman's version
    thanks
    Mark

    http://wordpress.org/extend/plugins/easy-sign-up/

  2. Greenweb
    Member
    Plugin Author

    Posted 1 year ago #

    By extra capture field, do you mean one more text field?

    If this is what you need, it can be accomplished by using a hook.
    This would be need you to create a plugin that calls this hook in the Easy Sign Up.
    If you not familiar with PHP maybe a hard thing to do. I would be happy to give you an estimate on getting this done for you: http://www.beforesite.com/request-a-proposal-for-your-custom-wordpress-plugin/

  3. crystal1413
    Member
    Posted 1 year ago #

    Thanks Greenweb
    Yes I suppose I do mean a text field.
    I need to capture 3 bits of data
    Name
    Email address
    Wedding date.

    Would it cost much to get this extra field.
    Cheers
    Mark

  4. Greenweb
    Member
    Plugin Author

    Posted 1 year ago #

    <?php
    /*
    Plugin Name:  Wedding Date field for Easy Sign Up
    Plugin URI:   http://greenvillewebsite.com
    Description:  Adds a wedding date field for the easy sign up plugin
    Version:      0.1
    Author:       Andrew Rixom - GreenvilleWeb ( a dba of BeforeSite LLC)
    Author URI:   http://greenvillewebsite.com/
    */
    
    add_filter('esu_add_extra_form_fields_after','wd_add_extra_feild');
    function wd_add_extra_feild(){
        $formArray['wed'] = array(
        'name'    => __('Date of Wedding', 'wd_lang'),
        'validate'=> 'esu-required-input',
        'id'      => 'wedding_date',
        'class'   => 'esu-wedding',
        'type'    => 'text');
        return array($formArray['wed']);
    }

    The Code above is for a small plugin that will solve your problem. It's not a perfect solution as it does not inherit the formatting of the Easy Styles Extra plug in - but if you don't use that it will be just fine for your needs.
    How to use:

    1. Cut and paste the code block into a text file - name that text file: esu-wedding-field.php and save
    2. Put that new php file into a folder called esu-wedding-field
    3. The zip the folder
    4. To add a WordPress Plugin using the built-in plugin installer: http://codex.wordpress.org/Managing_Plugins#Installing_Plugins
  5. crystal1413
    Member
    Posted 1 year ago #

    That's so cool. Thank you so much. I will definitely make a contribution as soon as I land my next job.

  6. Greenweb
    Member
    Plugin Author

    Posted 1 year ago #

    no worries - just pay it forward :)

  7. Greenweb
    Member
    Plugin Author

    Posted 1 year ago #

    Hey crystal1413 if you liked the plugin and the support please give it a 5* review at http://wordpress.org/support/view/plugin-reviews/easy-sign-up
    Thanks :)

  8. christogeretz
    Member
    Posted 1 year ago #

    For the above php plugin, what is required to be added to the Easy Sign Up shortcode?

    Thanks!

  9. Greenweb
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Chisto assuming you have the Easy Sign Up plugin installed the normal sortcode will work :

    [easy_sign_up
    title="Your Title Here"
    fnln="1"
    phone="1"
    esu_label="A unique identifier for your form"
    esu_class="your-class-here"]
    All the attributes are optional if you don't want them just add the short code without it, e.g.: [easy_sign_up]

  10. digorange
    Member
    Posted 1 year ago #

    That is FREAKIN AWESOME!! Can't believe it worked... very cool! Thank you mucho. Is there a way to add one more field. I see that if I do it again it just swaps out the other one I added.. can you have 2 more added fields or is that way more complicated?

    Just asking.. this is a GREAT Plugin! Works perfect. I will def upgrade and or support!

    Thanks!

  11. Greenweb
    Member
    Plugin Author

    Posted 1 year ago #

    Below is a working e.g. of how to add extra fields to the plugin.

    <?php
    /*
    Plugin Name:  Add Extra fields for Easy Sign Up
    Plugin URI:   http://greenvillewebsite.com
    Description:  Adds extra fields to the easy sign up plugin
    Version:      0.1
    Author:       Andrew Rixom - GreenvilleWeb ( a dba of BeforeSite LLC)
    Author URI:   http://greenvillewebsite.com/
    */
    add_filter('esu_add_extra_form_fields_after','wd_add_extra_feild');
    function wd_add_extra_feild(){
        $formArray['text_field_1'] = array(
        'name'    => __('Date of Wedding', 'wd_lang'),
        'validate'=> 'esu-required-input',
        'id'      => 'wedding_date',
        'class'   => 'esu-wedding',
        'type'    => 'text');
        $formArray['text_field_2'] = array(
        'name'    => __('Just a Text Field', 'wd_lang'),
        'validate'=> 'esu-required-input',
        'id'      => 'wedding_date',
        'class'   => 'esu-wedding',
        'type'    => 'text');
        $formArray['tos'] = array(
        'name'    => 'I agree to the Terms and Conditions (tos)',
        'validate'=> 'esu-required-checkbox',
        'id'      => 'esu-tos',
        'class'   => 'esu-checkbox',
        'type'    => 'checkbox');
        return array(
          $formArray['text_field_1'],
          $formArray['text_field_2'],
          $formArray['tos']
          );
    }
    ?>

    As stated above:

    The Code above is for a small plugin that will solve your problem. It's not a perfect solution as it does not inherit the formatting of the Easy Styles Extra plug in - but if you don't use that it will be just fine for your needs.

    How to use:

    And if you liked the plugin and the support please give it a 5* review at http://wordpress.org/support/view/plugin-reviews/easy-sign-up
    Thanks :)

  12. Web_GeeK
    Member
    Posted 9 months ago #

    Hi there!

    I am wanting to add extra text fields in for a membership form for an organisation to keep track of thier members. Is there a way that I can modify the coding above to do what I want?? Thankyou

  13. Web_GeeK
    Member
    Posted 9 months ago #

    Sorry I should of specified. I am wanting to place an Address, state and Zip/Postcode in the form.

  14. Greenweb
    Member
    Plugin Author

    Posted 9 months ago #

    This is not a registration plugin

  15. netistix
    Member
    Posted 9 months ago #

    Hi,
    I see you are getting lots of requests for additional fields - me too!
    I simply need a drop down selection box with 2 options and for the selected option to be sent with the notification e-mail.
    Is this possible/easy?

    Thanks
    Steve

  16. Greenweb
    Member
    Plugin Author

    Posted 9 months ago #

    Yes it can Steve.

    I have built the plugin to be extended by others.

    I had hoped that the extension plugins I wrote and shared on the forum would be a starting point for people to create their own.

    You can easily modify the country drop-down example plugin to do what you need.

    Here is a link to the code: http://wordpress.org/support/topic/country-drop-down-list-1?replies=6#post-4539313

    How To Use:
    Cut and paste the code block into a text file - name that text file: esu_dropdown.php and save
    Put that new php file into a folder called esu_dropdown
    The zip the folder

    To add a WordPress Plugin using the built-in plugin installer see: http://codex.wordpress.org/Managing_Plugins#Installing_Plugins

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic