We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36698
    • 19 Posts
    I've built the eform contact form, and I added there custom field which is drop down selection. How can I show the result of selection on a report? Adding the name of the <select> like - Selected: [+name+] - doesn't work and just outputs empty space, am I missing something?
      • 4310
      • 2,310 Posts
      <select name="mySelect">
      <option value="one">One</option>
      <option value="two" selected="selected">Two</option>
      <option value="three">Three</option>
      </select>

      [+myName+] in the report should give the value "two"
        • 36698
        • 19 Posts
        thanks for quick reply, so in your example it should be [+mySelect+] ? This is what I did, and it doesn't work. Do I need to do anything to have class selected="selected" added, or should it be there automatically after choosing an option?
          • 4310
          • 2,310 Posts
          [+mySelect+]
          Oops, yes, try adding
           id="mySelect" 
          along with
          name="mySelect"

          I have it working like that on many sites using eForm.