PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Email Extensions

  1. twescott
    Member

    I use a simple form to gather basic information from some of my customers, including their email address. We collect info on about 100 customers daily, especially during busy times when the line is long.

    I'd like to be able to add some of the common email extensions underneath the field where the email address is typed, so that my staff collecting this information can just press one of these hotkeys and the @gmail.com, or @hotmail.com extension will be added automatically to the end of the email field.

    I've added the buttons in an HTML block underneath my email field, but the buttons don't actually do anything - yet. Any thoughts on how to make this work?

    Posted 11 years ago on Thursday January 24, 2013 | Permalink
  2. twescott
    Member

    Solved.

    In a standard HTML field I added:

    <script type="text/javascript">
          function insertText(elemID, text)
          {
            var elem = document.getElementById(elemID).value += text;
          }
        </script>
    
    <input type="button" value="@gmail.com" onclick="insertText('input_1_3', '@gmail.com');">
    Posted 11 years ago on Thursday January 24, 2013 | Permalink
  3. Thank you for posting that solution. It looks helpful for repetitive data entry.

    Posted 11 years ago on Wednesday January 30, 2013 | Permalink

This topic has been resolved and has been closed to new replies.