Announcement

Collapse
No announcement yet.

"Where did you hear about us?" with drop down list & custom text field

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    "Where did you hear about us?" with drop down list & custom text field

    I know there was a post in the past, but there was never a satisfactory resolution so I though I would start again and see if anyone has any new suggestions to get it working.

    What I want is to have a drop down list for the "Where did you hear about us?" and ""Why did you buy from us?" on Checkout Page 2 but have a final option of 'Other' which then brings up a text box so that people can enter their own answer.

    The code I have so far is:

    Code:
    <select name="GENERALHOWFOUND" onchange="javascript:div = document.getElementById('othershowhide'); if (this.options[this.selectedIndex].value == 'Other') div.style.visibility='visible'; else div.style.visibility = 'hidden'; " >
    
    <option></option>
    <option>Search Engine</option>
    <option>Exhibition</option>
    <option>Television</option>
    <option>Friend/Colleague </option>
    <option>Other Advertising</option>
    <option>Other Website</option>
    <option value=Other>Other - Please Specify</option>
    </select> 
    
    <div id="othershowhide" style="visibility: hidden">
    <input type="text" name="GENERALHOWFOUND" size="40" maxlength="255" value= "<actinic:variable name="GeneralHowFound" />" />
       </div>
    If other is selected and completed all works fine.

    If one of the other options is chosen then nothing is passed through to actinic.

    Any suggestions greatfully recevied.

    James

    oh the code is in the chechout of our site at www.ocusan.co.uk
    www.butterflies-healthcare.co.uk
    www.viteyes.co.uk - vitamins for macular degeneration
    www.natorigin.co.uk - natural/organic cosmetics and skin care for sensitive skin & eyes
    www.butterflies-eyecare.co.uk - eye drops, vitamins and other eye care products
    www.prescription-swimming-goggles.co.uk - optical and prescription swimming goggles

    #2
    I like the idea, and have attempted to do this a couple of weeks ago but it didn't want to work, so I gave up for now. I'll keep a watchful eye on this thead

    One thing I would like to comment on is your site navigation - due to knowing that your shop would be located at /acatalog/ - I found it impossible to find your shop other than by typing in the direct path. I'd be interested to hear how you intend the user to move from your homepage to the shop? You might want to look into this.

    Cheers,
    Grant

    Comment


      #3
      Hi James,

      The reason that the 'Other - Please Specify' option works is because you have entered '<option value=Other>'. You haven't specified the values for your other options. So, for instance, if you put:

      <option value="Search Engine">Search Engine</option>

      then it will pass the correct value across.
      ********************
      Tracey
      SellerDeck

      Comment

      Working...
      X