From c66566aa81728f342f7344902174e8109d2887f7 Mon Sep 17 00:00:00 2001 From: Scott Hutchinson Date: Thu, 27 Jun 2019 13:25:40 +1200 Subject: [PATCH] FIX Ensure initial visibility on fields is respected on hidden form steps --- code/model/UserDefinedForm.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/model/UserDefinedForm.php b/code/model/UserDefinedForm.php index f0a78e5..1c570a1 100755 --- a/code/model/UserDefinedForm.php +++ b/code/model/UserDefinedForm.php @@ -782,7 +782,9 @@ JS {$holder}.{$rule['opposite']}.trigger('{$rule['holder_event_opposite']}'); } }); - $("{$target}").find('.hide').removeClass('hide'); + if (!$("{$target}").hasClass('form-step')) { + $("{$target}").find('.hide').removeClass('hide'); + } EOS; }