Announcement

Collapse
No announcement yet.

Changing "how did you find us"

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

    Changing "how did you find us"

    I've tried to change the standard "how did you find us" text box to a dropdown menu based on info I've found on here. It doesn't work in as much that it doesn't transfer the info other than the optional text box. It's appearance is ok on the web

    If anyone can point me the right way I'd be grateful.



    <tr>

    <td>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22GeneralPrompt000Required%22%20%2f%3e"><span class="actrequired"></actinic:block>
    <Actinic:Variable Name="GeneralPrompt000"/>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22GeneralPrompt000Required%22%20%2f%3e"><span class="actrequired"></actinic:block>
    </td>
    <td>
    <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 value="Returning customer">Returning customer</option>
    <option value="Google">Google</option>
    <option value="Yahoo">Yahoo</option>
    <option value="other search engine">Other Search Engine</option>
    <option value="Friend/Colleague">Friend/Colleague </option>
    <option value="link from another poultry website">Link from another poultry website</option>
    <option value="Practical Poultry mag">Practical Poultry Magazine</option>
    <option value="Smallholder Mag">Smallholder Magazine</option>
    <option value="Country Smallholder">Country Smallholder</option>
    <option value="Fancy Fowl Mag">Fancy Fowl Magazine</option>
    <OPTION value="GYO Mag">Grow Your Own Magazine</option>
    <option value="Kitchen Garden Mag">Kitchen Garden Magazine</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>
    </td>
    </tr>

    #2
    You have two form elements with identical names:

    name="GENERALHOWFOUND"

    Actinic will pick up only one of these.

    Try something like:
    Code:
    <tr>
    
    <td>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22GeneralPrompt000Required%22%20%2f%3e"><span class="actrequired"></actinic:block>
    <Actinic:Variable Name="GeneralPrompt000"/>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22GeneralPrompt000Required%22%20%2f%3e"><span class="actrequired"></actinic:block>
    </td>
    <td>
    <select onchange="javascript:
    		imp = document.getElementById('GENERALHOWFOUND'); 
    		show = document.getElementById('othershowhide'); 
    		val = this.options[this.selectedIndex].value; 
    		if (val == 'Other') 
    			{imp.value = ''; show.style.visibility='visible';}  
    		else 
    			{imp.value = val; show.style.visibility='hidden';}"
    >
    
    <option></option>
    <option value="Returning customer">Returning customer</option>
    <option value="Google">Google</option>
    <option value="Yahoo">Yahoo</option>
    <option value="other search engine">Other Search Engine</option>
    <option value="Friend/Colleague">Friend/Colleague </option>
    <option value="link from another poultry website">Link from another poultry website</option>
    <option value="Practical Poultry mag">Practical Poultry Magazine</option>
    <option value="Smallholder Mag">Smallholder Magazine</option>
    <option value="Country Smallholder">Country Smallholder</option>
    <option value="Fancy Fowl Mag">Fancy Fowl Magazine</option>
    <OPTION value="GYO Mag">Grow Your Own Magazine</option>
    <option value="Kitchen Garden Mag">Kitchen Garden Magazine</option>
    <option value="Other">Other - Please specify</option>
    </select>
    
    <div id="othershowhide" style="visibility: hidden">
    <input type="text" id="GENERALHOWFOUND" name="GENERALHOWFOUND" size="40" maxlength="255" value="<actinic:variable name="GeneralHowFound" />" />
    </div>
    
    </td>
    </tr>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks.
      That's seems to work ok.

      Comment

      Working...
      X