From 8e0eed0307118c6ed1cf19f5da3ba0930cb296e3 Mon Sep 17 00:00:00 2001 From: Noah Miller Date: Mon, 31 Aug 2020 23:38:30 -0700 Subject: [PATCH] Custom field create/edit form: replace dysfunctional checkbox with static label in edit mode --- templates/CRM/Custom/Form/Field.tpl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Custom/Form/Field.tpl b/templates/CRM/Custom/Form/Field.tpl index c50080cef8..fe0d691482 100644 --- a/templates/CRM/Custom/Form/Field.tpl +++ b/templates/CRM/Custom/Form/Field.tpl @@ -21,6 +21,9 @@ {$form.data_type.label} {$form.data_type.html} + {if $action neq 1 && $form.data_type.value[1][0] eq "Select" && $form.serialize.value} + ({ts}Multi-Select{/ts}) + {/if} {if $action neq 4 and $action neq 2}
{ts}Select the type of data you want to collect and store for this contact. Then select from the available HTML input field types (choices are based on the type of data being collected).{/ts} {/if} @@ -34,10 +37,12 @@ {/if} - - {$form.serialize.label} - {$form.serialize.html} - + {if $action eq 1} + + {$form.serialize.label} + {$form.serialize.html} + + {/if} {if $form.in_selector} {$form.in_selector.label} -- 2.25.1