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

Custom Profile Fields

Travis

Active member
#1
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?
 

Jake Bunce

XenForo moderator
Staff member
#2
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

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