{i18n}Manage conditional fieldset{/i18n}

{i18n}Conditional fieldsets allow you to restrict the options a user has for values in some fields based on the values in other fields. There are two kinds of conditional fieldsets: Simple and Complex . Simple fieldsets should be sufficient for most things: they allow you to say that the values of one field are restricted to a certain subset of values if another field has a specific value. For example, you could say that if the field "Street" is "Jeffrey", then the field "Residents" must be one of "Jones","Smith" or "Friedman".{/i18n}

{i18n}Complex fieldsets allow you to give far more detailed structure to your information: The value of "Residents" can depend not only on "Street", but on how the user was allowed to select the specific street (given another field).{/i18n}

{* don't show warnings until the basics are done. *} {if ($oMasterField && empty($free_fields))} {if $sIncomplete}

{i18n}This conditional fieldset is marked such that it cannot be used. This happens when the fieldset has been edited and has not been set to complete. Setting the fieldset to complete will do a check to see if the fieldset is usable by the user.{/i18n}

{/if} {if $sIncomplete}

{i18n}This error prevents this fieldset from being set to complete{/i18n}: {$sIncomplete|escape}

{/if} {/if}

{i18n}View Overview{/i18n}

{i18n}Conditional type{/i18n}

{if $oFieldset->getIsComplex()}

{i18n}The fieldset is currently designated as Complex{/i18n}

{if ($oMasterField && empty($free_fields))}

{i18n}Manage complex conditional{/i18n}

{/if}
{else}

{i18n}The fieldset is currently designated as Simple{/i18n}

{if ($oMasterField && empty($free_fields))}

{i18n}Manage simple conditional{/i18n}

{/if}
{/if}

{i18n}Changing the conditional type set will remove all existing field ordering!{/i18n}

{if !$oMasterField}

{i18n}Master field{/i18n}

{i18n}No master field is set, please select the master field{/i18n}:
{entity_select entities=$oFieldset->getFields() name="fFieldId"}
{else}
{i18n}Master field{/i18n}

{i18n}In order to have a chain of conditions, one initial field must be shown to the user. This is called the master field.{/i18n}

{i18n}Changing the master field set will remove all existing field ordering!{/i18n}

{entity_select entities=$oFieldset->getFields() name="fFieldId" selected=$oMasterField->getId()}

{i18n}Field ordering{/i18n}

{if $aFieldOrders}

{i18n}Existing ordering{/i18n}

{/if} { if $free_fields }
{i18n}Order Fields{/i18n}

{i18n}The value of the field{/i18n}

{entity_select entities=$parent_fields name="fParentFieldId"}

{i18n}controls the values of the following fields{/i18n}

{entity_select entities=$free_fields name="fFreeFieldIds[]" multiple="yes"}
{/if} {/if}

{i18n}Rename Behaviours{/i18n}