how can i get the value of the user in input tag?

  • Profile Image
    glenn 
    Asked on January 14, 2015 at 02:59 AM

    Like in first name, middle name, last name, phone number. when i try to get their value the result was null.

     

    <li class="form-line jf-required" data-type="control_fullname" id="id_15">

            <label class="form-label form-label-left" id="label_15" for="input_15">

              Name

              <span class="form-required">

                *

              </span>

            </label>

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

              <span class="form-sub-label-container">

                <input class="form-textbox validate[required]" type="text" size="10" name="q15_name15[first]" id="first_15" />

                <label class="form-sub-label" for="first_15" id="sublabel_first"> First Name </label>

              </span>

              <span class="form-sub-label-container">

                <input class="form-textbox validate[required]" type="text" size="15" name="q15_name15[last]" id="last_15" />

                <label class="form-sub-label" for="last_15" id="sublabel_last"> Middle name </label>

              </span>

              <span class="form-sub-label-container">

                <input class="form-textbox" type="text" size="4" name="q15_name15[suffix]" id="suffix_15" />

                <label class="form-sub-label" for="suffix_15" id="sublabel_suffix"> Last Name </label>

              </span>

            </div>

          </li>

          <li class="form-line jf-required" data-type="control_phone" id="id_32">

            <label class="form-label form-label-left form-label-auto" id="label_32" for="input_32">

              Phone Number

              <span class="form-required">

                *

              </span>

            </label>

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

              <span class="form-sub-label-container">

                <input data-type="mask-number" masked="true" class="mask-phone-number form-textbox validate[required]" type="tel" name="q32_phoneNumber32[full]" id="input_32_full" autocomplete="off">

                <label class="form-sub-label" for="input_32_full">

                  <div>

                    &nbsp;&nbsp;&nbsp;

                  </div>

                </label>

              </span>

            </div>

          </li>

  • Profile Image
    Carina
    Answered on January 14, 2015 at 09:59 AM

    Please provide us more details on the result you are trying to achieve so we can be of more assistance.

    Thank you

  • Profile Image
    abajan
    Answered on February 08, 2015 at 06:12 AM

    Glenn,

    Is this something to do with pre-population? If so, the values of the name attribute should not include the first four characters. Also, the format should be in the form of {field:sub-field}. For instance, in the code you provided above, the value of the name attribute for the first name field is q15_name15[first]. So, to get the value entered their you would remove the q15_ and then change name15[first] to {name15:first}.

    However, as my colleague has stated, we need more information about what you're trying to accomplish. If privacy is a concern, we can make the thread private, so only you and our team can view it. Would you like us to do that?