Condition 3 Profile Fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tommyxv
    Senior Member
    • Oct 2003
    • 331

    Condition 3 Profile Fields

    Is there a way to set <if> conditions if the user hasn't filled out all three single drop down menus that it will show something by default?

    I know how to do it for 1 profile field like this:

    Code:
    <if condition="$userinfo[field2]">$userinfo[field2]<else />N/A</if>
    First drop down is the car year
    Second drop down is the car make
    Third drop down is the car model

    This is a vehicle specific forum so the choices are limited.

    I have it displaying perfectly on the profile page like this:

    $userinfo[field11] $userinfo[field12] $userinfo[field13]

    I want it to say N/A if the user hasn't filled out all 3 fields. Can that be done?

    I don't want N/A three time.
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    Use something like this:
    Code:
    <if condition="$userinfo[field12] AND $userinfo[field11] AND $userinfo[field13]">$userinfo[field12] $userinfo[field11] $userinfo[field13]<else />N/A</if>
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • tommyxv
      Senior Member
      • Oct 2003
      • 331

      #3
      Perfect!

      Thanks!

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...