From 19b46c9530a97b1b1eea7deb84da852e40638ba4 Mon Sep 17 00:00:00 2001 From: larssandergreen Date: Fri, 2 Jun 2023 12:47:40 -0600 Subject: [PATCH] Set options_per_line to zero when changing Custom Field html_type --- templates/CRM/Custom/Form/Field.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/CRM/Custom/Form/Field.tpl b/templates/CRM/Custom/Form/Field.tpl index 184d63079a..7ed7436cea 100644 --- a/templates/CRM/Custom/Form/Field.tpl +++ b/templates/CRM/Custom/Form/Field.tpl @@ -216,6 +216,9 @@ if (htmlType === 'CheckBox' || htmlType === 'Radio') { $('#serialize', $form).prop('checked', htmlType === 'CheckBox'); } + else { + $("#options_per_line", $form).val(''); + } showSearchRange(dataType); customOptionHtmlType(dataType); -- 2.25.1