Hey! I set up a repeater field on one of my forms, and I know that (technically) conditional logic isn’t supported in the php function side of things. I was able to accomplish the conditionals I needed using jQuery (specifically disabling and removing values from fields).
Some of the fields within the repeater are required, and if someone tries to submit the form without filling out one of the required fields, the validation errors pop up – which is fine, but here’s the problem I’m running into: when form reloads to show validation errors, it removes all of the jQuery that’s been applied to the fields… so if a field had a “disabled” attribute applied to it via jQuery, it now appears as enabled.
So I’m wondering, is there a way to maintain the jQuery applied to the fields if the form needs to reload because of validation errors?