Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Listbox conditional
erich Offline
Junior Member
**
Posts: 2
Joined: Jul 2015
Post: #1
Listbox conditional
Hi,

I'm wondering if it's possible to make a conditional for a listbox.

What I'm trying to do is make it so when a user makes a selection, it will display certian HTML and other xthread fields.

So I made a contact form with a dropdown. If the person chooses "Contact Staff" then it will display only xthread fields that I made for staff.

If they choose "Submit Article" then it will not show any staff related xthread fields.

I was reading the forums and saw how it can be created, but I'm not sure what the values are for the drop down selection.

I saw something like:

Code:
<if $GLOBALS['threadfields']['contus_select'] == 'war' then>
            This is a war zone
<elseif $GLOBALS['threadfields']['contus_select'] == 'safe' then>
this is a safe zone
</if>


I'm not sure where the 'war' and 'safe' values are coming from in this example.

Thanks for the help!

07-29-2015 08:01 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Listbox conditional - erich - 07-29-2015 08:01 AM
RE: Listbox conditional - isoka - 07-30-2015, 01:07 AM
RE: Listbox conditional - ZiNgA BuRgA - 07-31-2015, 03:29 PM
RE: Listbox conditional - leefish - 08-01-2015, 07:17 PM

 Standard Tools
Forum Jump: