Log in

View Full Version : drop down selection properties


Chicago_VLNU_4s
12-04-2006, 08:35 AM
what code would I use to give a drop down selection a specific value.

Example: Multiple-Selection Checkbox
<if condition="$post['field70']&1">
WHATEVER YOU WANTED TO SHOW WOULD GO IN HERE.
</if>

<if condition="$post['field70']&2">
WHATEVER YOU WANTED TO SHOW WOULD GO IN HERE.
</if>

<if condition="$post['field70']&3">
WHATEVER YOU WANTED TO SHOW WOULD GO IN HERE.
</if>

If I have a multiple-selection checkbox, and had 3 options to choose from, if you clicked on those 3 options in Edit Profile, they would show on the profile. The "&1", "&2", "&3" is what's giving the value to my guess.. So I want to use this same method for Single-Selection drop down and that code doesn't work. Any help?

Princeton
12-04-2006, 11:36 AM
just use
$post[field70]

depending on the profilefield type the value that is displayed could be the "actual" value as entered via the Profile Manager or it could be a number; if a number is displayed use

<if condition="$post['field70']==1">
ENTER profilefield value here
</if>