Set options_per_line to zero when changing Custom Field html_type
authorlarssandergreen <lars@wildsight.ca>
Fri, 2 Jun 2023 18:47:40 +0000 (12:47 -0600)
committerlarssandergreen <lars@wildsight.ca>
Fri, 2 Jun 2023 18:47:40 +0000 (12:47 -0600)
templates/CRM/Custom/Form/Field.tpl

index 184d63079a348341041b2ebf1b216b75aa6c68f9..7ed7436ceabea472da0ab8de38458a5c08ef6b45 100644 (file)
       if (htmlType === 'CheckBox' || htmlType === 'Radio') {
         $('#serialize', $form).prop('checked', htmlType === 'CheckBox');
       }
+      else {
+        $("#options_per_line", $form).val('');
+      }
 
       showSearchRange(dataType);
       customOptionHtmlType(dataType);