• Resolved justinwinn

    (@justinwinn)


    Hello,

    I’m using eNews Extended integrated with Mailchimp. It works great. When I fill in the “first name” and “email” fields and submit, the form behaves perfectly. In testing the form, I wanted to see what would happen if a user left “name” or “email” blank (these are both required fields) and found that if the user skips filling in either of the fields and clicks on the submit button, they are taken from my site to this page:

    https://realsimplegood.us10.list-manage.com/subscribe/post?u=62046b9bd7592b0479ef014a3&id=b0f5cdda61

    The page notes that there are errors due to the missing field information.

    This is not and ideal user experience because the user leaves my site. Also, the hidden field tag I have applied in the widget form on my site doesn’t get attached to that subscriber and I can’t properly segment my email list.

    Is there a way to code the form action within the eNews Extended plugin so that if a field in the form is blank, then an error shows in the form on the same page on my site?

    I want something like this site – http://www.maximsherstobitov.com. If you don’t enter a name in his form, it just shows a message at the bottom of the form asking you to fill in the name.

    My site is realsimplegood.com.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    At this time, there is not. It could be something we add in the future (a checkbox in widget settings to indicate if a field is required). In that case, the browser may show that a field needs to be filled before submitting.

    vijayan1963

    (@vijayan1963)

    Well…In that case, How can we validate the field is empty or not?. If I want to write myself by php code, Can you give step by step detail or Link how to do ?

    I have created a file called “page_XXXX.php in theme folder and inserted <form> xxxx</form> into the content area with action=”myaction_validate.php”. I resisted this file as a template and used it into about page.
    About Page is successfully loaded with form field. But the validation php file does not respond or give error. How can I overcome this problem sir? please help me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Name field validation’ is closed to new replies.