Custom Profile Fields

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?
 
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

Rich (BB code):
<xen:if is="{$user.customFields.openclosed_field_id} == 'Closed'">
	Closed until: {$user.customFields.date_field_id}
</xen:if>
 
Top Bottom