Conditional "Required Response"?

There is one problem that I can't solve, I hope you can help.

Inside the Question there is a group of inputs, for example text inputs 7 and 8, and it should be shown, at a certain value Input6 >= 1, and otherwise hidden.

It is easily implemented with javascript, everything is fine with it.

But if the value of Input6 is empty and fields 7,8 are hidden,

then when I click Next, an error occurs. These fields must be filled.

How to overcome this? To avoid counting these fields in.

See screencast with example
https://yeswp.ru/conditional-required-response.mkv

Earlier For Lighthouse 9.15, I overridden SSI_SubmitInitialize() and used SSI_ShowAlert in case of an error or SSI_NextSubmit if the required fields are filled. However, in version 9.16, the SubmitMe() function is automatically added to document.ready and nothing else works for me.

I know there is also a Skip Logic and I could divide question into several, this could overcome the issue, but we have already study with more than 50 pages (and much more questions).

Please help how can I solve this problem? To check that some fields are necessary only when certain variable is set.

1 reply