Viewing 15 replies - 16 through 30 (of 39 total)
  • Boris, I have a new problem. My form in Aweber requires that all the fields be filled. However form1 will allow you to register without filling in all the fields. How can I fix this, it’s important for me.

    Thanks

    Hi k9u,

    I’ve tried signing up with the following email address: test-/at-k9-university.com and you are right. People can sign up without entering their phone number.

    You may want to delete this test subscription email from your Aweber mailing list.

    To fix this, open the following file:
    /wp-content/plugins/optin-forms/includes/functions-forms.php

    Scroll to line 206.

    Find the following:
    <form method=\"post\" action=\"" . optinforms_get_form_action() . "\">

    change to:
    <form method=\"post\" action=\"" . optinforms_get_form_action() . "\"><input type="hidden" name="meta_required" value="name,email" /><input type="hidden" name="meta_required" value="name,email,phone" />

    Save the document and re-upload.

    Just like with creating this custom field in this form, keep in mind that you would have to repeat the process each and every time you update the plugin to a new version.

    At this time, we don’t support adding custom fields to your forms. This also means that I’m helping out in any way I can, but I can’t guarantee that it will keep working with any plugin updates. Hope you do understand ??

    Boris, thanks you for the reply however I can not find that code at 206 or anywhere close to it.

    Just to be sure you want me to be at :/wp-content/plugins/optin-forms/includes/functions-forms.php ? Is that correct?

    Where would it be, under what action title?

    Also you do not have to put in your name in the form either. Should this code fix that as well?

    Thanks

    Hi k9u,

    The code is part of the following function: function optinforms_create_form()

    If you’re unable to find it, send me your WP admin login through our website and I will edit it for you.

    By default, aWeber only required an email address in order to sign up for a mailing list. This code adjustment will require all your fields to be filled in: name, email address and phone number.

    Boris, I changed it but got this error message.

    Parse error: syntax error, unexpected T_STRING in /home/k9univer/public_html/wp-content/plugins/optin-forms/includes/functions-forms.php on line 411

    I tried changing back but still get message and my site is down.

    What do I need to do to get you to help me?

    How can I send you the file?

    Can you just send me the corrected file?

    Thanks

    Here is the code that has the problem:

    function optinforms_create_form() {
    
    	global $optinforms_form_design;
    
    	if($optinforms_form_design == 'optinforms_form_design_option1') {
    
    		return "" . optinforms_code_comment() . "<div id=\"optinforms-form1-container\" " . optinforms_form1_get_width() . "><form method=\"post\" action=\"" . optinforms_get_form_action() . "\">  optinforms_get_form_identifiers() . "<div id=\"optinforms-form1\" style=\"background:" . optinforms_form1_default_background() . "; border-color:" . optinforms_form1_default_border() . "\"><p id=\"optinforms-form1-title\" style=\"font-family:" . optinforms_form1_default_title_font() . "; font-size:" . optinforms_form1_default_title_size() . "; line-height:" . optinforms_form1_default_title_size() . "; color:" . optinforms_form1_default_title_color() . "\">" . optinforms_form1_default_title() ."</p><p id=\"optinforms-form1-subtitle\" style=\"font-family:" . optinforms_form1_default_subtitle_font() . "; font-size:" . optinforms_form1_default_subtitle_size() . "; line-height:" . optinforms_form1_default_subtitle_size() . "; color:" . optinforms_form1_default_subtitle_color() . "\">" . optinforms_form1_default_subtitle() . "</p><div id=\"optinforms-form1-name-field-container\"> <input type=\"text\" id=\"optinforms-form1-name-field\" name=\"" . optinforms_get_name_field() . "\" placeholder=\"" . optinforms_form1_default_name_field() . "\" style=\"font-family:" . optinforms_form1_default_fields_font() . "; font-size:" . optinforms_form1_default_fields_size() . "; color:" . optinforms_form1_default_fields_color() . "\" /></div><!--optinforms-form1-name-field-container--><div id=\"optinforms-form1-email-field-container\"><input type=\"text\" id=\"optinforms-form1-email-field\" name=\"" . optinforms_get_email_field() . "\" placeholder=\"" . optinforms_form1_default_email_field() . "\" style=\"font-family:" . optinforms_form1_default_fields_font() . "; font-size:" . optinforms_form1_default_fields_size() . "; color:" . optinforms_form1_default_fields_color() . "\" /></div><!--optinforms-form1-email-field-container--><input type=\"text\" id=\"optinforms-form1-phone-field\" name=\"phone\" placeholder=\"Phone\" style=\"font-family:" . optinforms_form1_default_fields_font() . "; font-size:" . optinforms_form1_default_fields_size() . "; color:" . optinforms_form1_default_fields_color() . "\" /><div id=\"optinforms-form1-button-container\"><input type=\"submit\" name=\"submit\" id=\"optinforms-form1-button\" value=\"" . optinforms_form1_default_button_text() . "\" style=\"font-family:" . optinforms_form1_default_button_text_font() . "; font-size:" . optinforms_form1_default_button_text_size() . "; color:" . optinforms_form1_default_button_text_color() . "; background-color:" . optinforms_form1_default_button_background() . "\" /></div><!--optinforms-form1-button-container--><div class=\"clear\"></div><p id=\"optinforms-form1-disclaimer\" style=\"font-family:" . optinforms_form1_default_disclaimer_font() . "; font-size:" . optinforms_form1_default_disclaimer_size() . "; line-height:" . optinforms_form1_default_disclaimer_size() . "; color:" . optinforms_form1_default_disclaimer_color() . "\">" . optinforms_form1_default_disclaimer() . "</p></div><!--optinforms-form1--><div class=\"clear\"></div>" . optinforms_powered_by() . "</form></div><!--optinforms-form1-container--><div class=\"clear\"></div>" . optinforms_code_comment_end() . optinforms_form1_add_custom_css() . "";

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Sorry for that, I failed to do some editing to the code.

    This is the right one:
    <form method=\"post\" action=\"" . optinforms_get_form_action() . "\"><input type=\"hidden\" name=\"meta_required\" value=\"name,email,phone\" />

    I can send you the updated file, what’s your email?

    Thank you…

    wayne at iamcentral dot com

    No problem ??

    Sent!

    OK…the website is back up however the phone is now gone.

    Thanks!!!

    I guess I need to go back and do the steps above or is there a short cut to get the phone area back?

    Check your email again. I’ve sent you the file with phone field. Let me know if it works like it should ??

    yes, yes, yes

    That did it! It is perfect! and it works perfect!

    Great, glad it’s working for ya ??

    Hi,
    I really like your plugin! You have done great job! I would like to ask if you can help: I would like to use the form design 02, and I need to add “Name” Field between the title and the “Email field”. How can I do that, which file to edit? And where to look?
    Thanks in advance!
    Mitko

Viewing 15 replies - 16 through 30 (of 39 total)
  • The topic ‘Is there a way to add a new field?’ is closed to new replies.