Webmastersite.net
Register Log In

How to vary the options in a dropdown
based on the CATID the link is below....?

Comments on How to vary the options in a dropdown

capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Jan 30, 2006 - 5:12 PM:

Hi, is there a way of showing a specific currency in a dropdown box based on the category ID? To illustrate: Lets say I have a dropdown box with 3 currencies - £, $ and the third one should vary depending on which category the user is putting a link under, eg if its under the France category, I would like the option to be FR

So I'm visualising something like this:
<select name="currency"><option value="£">£</option><option value="$"> $</option><IF {CATBENEATH}=1><option value="FR">FR</option></IF></select>
obviously thats not correct but just for the purposes of demonstrating what

any advice appreciated.
I'm trying to achieve.
....
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 01, 2006 - 2:39 PM:

So why not do that? Using the proper syntax described in the category variables article of course. Does it not work?
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.