Form results being e-mailed are not including name????

  • MarleyPaige
    Asked on September 8, 2016 at 4:22 PM

    Hi There,

     

    I created a form in which we collect name (read only field that is filled in via a script on my page load).

     

    it collects other stuff too, but name is what is giving me problems.

     

    when I submit the form with my name filled in the e-mailed submission has no name....what the heck?

     

    see screenshots below:

     

    Form results being e mailed are not including name???? Image 1 Screenshot 30

     

     

    Submission Result:

    Form results being e mailed are not including name???? Image 2 Screenshot 41

     

    I don't understand. Help!

  • David JotForm Support
    Replied on September 8, 2016 at 7:04 PM

    The form may be perceiving the fields as empty and hiding them from the email.  This could be due to the fields being filled by the script instead of manually.  The form itself does forward all fields via email, even when using browser autofill:

    Form results being e mailed are not including name???? Image 1 Screenshot 20

    You can try disabling hide empty field on emails from the old UI to see if that works.  Here is our guide on where to find the option:

    https://www.jotform.com/help/256-How-to-Hide-Empty-Fields-on-Email-Alerts

    While editing your form, to load the old UI, reload your from from this URL:

    http://jotform.com/?old

  • MarleyPaige
    Replied on September 9, 2016 at 4:43 PM

    Hi @david well that solution kind of worked but mainly did not...

     

    so with that update I get this as a result:

    It shows name field.. but does not show what I filled to it. 

    Form results being e mailed are not including name???? Image 1 Screenshot 30

     

     

    here is what my source code that feeds the field looks like, maybe we can make a change in the read only field to make it just hidden? (im not the best with webforms, please advise code changes)

    Form results being e mailed are not including name???? Image 2 Screenshot 41

     

    text version of that part of webform:

     

          <li class="form-line" data-type="control_email" id="id_12">

            <label class="form-label form-label-left form-label-auto" id="label_12" for="input_12"> E-mail </label>

            <div id="cid_12" class="form-input jf-required">

              <input type="email" readonly="readonly" tabindex=-1 class="form-readonly  form-textbox validate[Email]" id="input_12" name="q12_email" size="30" value="[memb_contact fields=Email]" />

            </div>

          </li>

          <li class="form-line" data-type="control_fullname" id="id_5">

            <label class="form-label form-label-left form-label-auto" id="label_5" for="input_5"> Name </label>

            <div id="cid_5" class="form-input jf-required">

              <span class="form-sub-label-container" style="vertical-align: top">

                <input readonly="readonly" tabindex=-1 placeholder="[memb_contact fields=FirstName]" class="form-readonly form-textbox" type="text" size="10" name="q5_name[first]" id="first_5" />

                <label class="form-sub-label" for="first_5" id="sublabel_first" style="min-height: 13px;"> First Name </label>

              </span>

              <span class="form-sub-label-container" style="vertical-align: top">

                <input readonly="readonly" tabindex=-1 placeholder="[memb_contact fields=LastName]" class="form-readonly form-textbox" type="text" size="15" name="q5_name[last]" id="last_5" />

                <label class="form-sub-label" for="last_5" id="sublabel_last" style="min-height: 13px;"> Last Name </label>

              </span>

            </div>

          </li>

     

    please advise,

     

    P.s Now that I have the old interface, how do I get back to the new interface? 

  • David JotForm Support
    Replied on September 9, 2016 at 6:04 PM

    To get back to the new interface, you would need to log our and clear your browsers cache.  It stores the old UI until cleared.

    As for the submission issue, it doesn't look like the field is actually being filled by your script. 

    Form results being e mailed are not including name???? Image 1 Screenshot 50

    The data is not being forwarded in the email because it is not being collected at all.  I suspect what is happening is the script is replacing placeholder text, rather than a default value. 

    Form results being e mailed are not including name???? Image 2 Screenshot 61

    This is why your email field works since it replacing default text, rather that a hint example:

    Form results being e mailed are not including name???? Image 3 Screenshot 72

    If you were using the hint example in your email field instead of the default value, it would not longer work.

    Since name fields do not allow for a default value, you would need to switch to using text box fields instead.  Text boxes allow for default values in addition to hint examples:

    Form results being e mailed are not including name???? Image 4 Screenshot 83

     

  • MarleyPaige
    Replied on September 12, 2016 at 11:01 AM

    Hi David,

     

    Thanks for all the additional guidance.

     

    Changing the fields over to text boxes and using the default value option has worked!

     

    see resulting screenshot :D 

     

    Form results being e mailed are not including name???? Image 1 Screenshot 20

     

    best regards,

     

    Jon

  • David JotForm Support
    Replied on September 12, 2016 at 11:26 AM

    I suspected that was the case, glad to hear my assumption was correct.  Let us know if there is anything else we can assist you with and we will be happy to help.