{$title}

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

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

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