1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Custom Profile Fields

Discussion in 'Styling and Customization Questions' started by Travis, May 3, 2012.

  1. Travis

    Travis Active Member

    Ok,I don't know if this is possible,but on my site people go away for certain periods of time (holidays etc). What I would like is a field in the profile section like this:

    Company Status: Drop down - Open,Closed

    AND If the user selects closed,then the following option appears:

    Closed until: Date Selection Dropdown menu

    Is this possible?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    For editing the field there is no option to have one field dependent on another. But for actually displaying the closed date you can setup conditionals in the templates. For example, if you want the message to show in posts then you can edit this template:

    Admin CP -> Appearance -> Templates -> message_user_info

    <xen:if is="{$user.customFields.openclosed_field_id} == 'Closed'">
    	Closed until: {$user.customFields.date_field_id}

Share This Page