

<script>
document.addEventListener('DOMContentLoaded', function() {
    var parentInputs = document.querySelectorAll('.question input, .question select, .question textarea');

    parentInputs.forEach(function(input) {
        input.addEventListener('change', function() {
            var parentId = this.closest('.form-group').querySelector('.question').id.replace('question_', '');
            var childQuestions = document.querySelectorAll(`.question[data-parent-question-id="${parentId}"]`);

            console.log(parentId);
            console.log(childQuestions);

            childQuestions.forEach(function(question) {
                var requiredAnswer = question.getAttribute('data-parent-answer');
                if (input.value === requiredAnswer) {
                    question.style.display = 'block';
                } else {
                    question.style.display = 'none';
                }
            });
        });
    });
});
</script>


<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://test.robinwood.io/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://test.robinwood.io/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://test.robinwood.io/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://test.robinwood.io/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://test.robinwood.io/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
