{$title}

{sprintf('[s`Enter available options for %s depending on it’s parent field value.`]', $title)} [`Get help`]

[s`IF parent field`]
{* push dummy item for prepare adding-interface *} {$fields[] = ['value' => '', 'children' => [] ]} {foreach $fields as $parent}
=
{sprintf('[s`Prompt to select %s from the following list:`]', $title)}

{if !empty($parent.children)} {foreach $parent.children as $child} {/foreach} {/if}
[s`Add option`]
{/foreach}
[s`ELSE, in case parent field value does not match any of the listed above`]
{$wa->csrf()}
{* * JS for this dialog is in SettingsFieldEditor.html * and js class WASettingsSubfieldConditionalValues *}