{"survey":{"ID":81,"post_author":"1","post_date":"2021-05-05 13:17:40","post_date_gmt":"2021-05-05 13:17:40","post_content":"\n

This survey is a demonstration of conditional rules feature available in NgSurvey. You can show\/hide questions or skip to a page or finish survey based on user responses.<\/p>\n","post_title":"Conditional Rules\/Skip Logic Demo","post_excerpt":"","post_status":"publish","comment_status":"closed","ping_status":"closed","post_password":"","post_name":"conditional-rules-skip-logic-demo","to_ping":"","pinged":"","post_modified":"2021-05-06 12:00:18","post_modified_gmt":"2021-05-06 12:00:18","post_content_filtered":"","post_parent":0,"guid":"https:\/\/demo.ngideas.com\/?post_type=ngsurvey&p=81","menu_order":0,"post_type":"ngsurvey","post_mime_type":"","comment_count":"0","filter":"raw"},"metadata":{"tracking_method":["cookie"],"end_of_survey_title":"","end_of_survey_message":""},"pages":[{"id":"14","title":"Basic details","sort_order":"1"},{"id":"15","title":"Preferences","sort_order":"2"},{"id":"17","title":"Football","sort_order":"3"},{"id":"16","title":"Cricket","sort_order":"4"},{"id":"19","title":"Baseball","sort_order":"5"},{"id":"18","title":"Hockey","sort_order":"6"}],"questions":[{"id":"86","survey_id":"81","title":" Are you a professional sports person?","description":"

Based on your answer, we will ask you more questions.<\/p>","qtype":"choice","params":"{\"choice_type\":\"radio\",\"minimum_selections\":0,\"maximum_selections\":0,\"show_answers_inline\":0,\"show_custom_answer\":0,\"custom_answer_placeholder\":\"Other\",\"custom_answer_maxlength\":256,\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"14","answers":[{"id":"279","question_id":"86","answer_type":"x","title":"Yes","sort_order":"1","image":null},{"id":"280","question_id":"86","answer_type":"x","title":"No","sort_order":"2","image":null}],"columns":[]},{"id":"87","survey_id":"81","title":"What type of sport you are involved in?","description":"

Choose your favorite<\/p>","qtype":"choice","params":"{\"choice_type\":\"radio\",\"minimum_selections\":0,\"maximum_selections\":0,\"show_answers_inline\":0,\"show_custom_answer\":0,\"custom_answer_placeholder\":\"Other\",\"custom_answer_maxlength\":256,\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"14","answers":[{"id":"281","question_id":"87","answer_type":"x","title":"Ball sport","sort_order":"1","image":null},{"id":"282","question_id":"87","answer_type":"x","title":"Water sport","sort_order":"2","image":null},{"id":"283","question_id":"87","answer_type":"x","title":"Sky sport","sort_order":"3","image":null}],"columns":[]},{"id":"88","survey_id":"81","title":"In which game\/sport you have played for a professional club\/team in the past?","description":"","qtype":"choice","params":"{\"choice_type\":\"radio\",\"minimum_selections\":0,\"maximum_selections\":0,\"show_answers_inline\":0,\"show_custom_answer\":0,\"custom_answer_placeholder\":\"Other\",\"custom_answer_maxlength\":256,\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"15","answers":[{"id":"284","question_id":"88","answer_type":"x","title":"Football","sort_order":"1","image":null},{"id":"285","question_id":"88","answer_type":"x","title":"Cricket","sort_order":"2","image":null},{"id":"286","question_id":"88","answer_type":"x","title":"Baseball","sort_order":"3","image":null},{"id":"287","question_id":"88","answer_type":"x","title":"Hockey","sort_order":"4","image":null}],"columns":[]},{"id":"89","survey_id":"81","title":"At what level you have played?","description":"

Select the level<\/p>","qtype":"choice","params":"{\"choice_type\":\"radio\",\"minimum_selections\":0,\"maximum_selections\":0,\"show_answers_inline\":0,\"show_custom_answer\":0,\"custom_answer_placeholder\":\"Other\",\"custom_answer_maxlength\":256,\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"15","answers":[{"id":"288","question_id":"89","answer_type":"x","title":"Local county level","sort_order":"1","image":null},{"id":"289","question_id":"89","answer_type":"x","title":"State level","sort_order":"2","image":null},{"id":"290","question_id":"89","answer_type":"x","title":"National level","sort_order":"3","image":null},{"id":"291","question_id":"89","answer_type":"x","title":"International level","sort_order":"4","image":null}],"columns":[]},{"id":"94","survey_id":"81","title":"How long have you been part of the Football club\/team that you are representing to?","description":"

Please let us know your experience level in the Football game.<\/p>","qtype":"choice","params":"{\"choice_type\":\"radio\",\"minimum_selections\":0,\"maximum_selections\":0,\"show_answers_inline\":0,\"show_custom_answer\":0,\"custom_answer_placeholder\":\"Other\",\"custom_answer_maxlength\":256,\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"17","answers":[{"id":"296","question_id":"94","answer_type":"x","title":"Less than a year","sort_order":"1","image":null},{"id":"297","question_id":"94","answer_type":"x","title":"Between an year to two","sort_order":"2","image":null},{"id":"298","question_id":"94","answer_type":"x","title":"Less than 5 years","sort_order":"3","image":null},{"id":"299","question_id":"94","answer_type":"x","title":"More than 5 years","sort_order":"4","image":null}],"columns":[]},{"id":"95","survey_id":"81","title":"Write something about your experience with your Football career","description":"

Describe briefly about your experience and any other details about the Football game.<\/p>","qtype":"textarea","params":"{\"regular_expression\":\"\",\"validation_message\":\"\",\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"17","answers":[],"columns":[]},{"id":"91","survey_id":"81","title":"How long have you been part of the Cricket club\/team that you are representing to?","description":"

This question is shown because you have selected Cricket as the sport in the previous page.<\/p>","qtype":"choice","params":"{\"choice_type\":\"radio\",\"minimum_selections\":0,\"maximum_selections\":0,\"show_answers_inline\":0,\"show_custom_answer\":0,\"custom_answer_placeholder\":\"Other\",\"custom_answer_maxlength\":256,\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"16","answers":[{"id":"292","question_id":"91","answer_type":"x","title":"Less than a year","sort_order":"1","image":null},{"id":"293","question_id":"91","answer_type":"x","title":"One to two years","sort_order":"2","image":null},{"id":"294","question_id":"91","answer_type":"x","title":"Two to five years","sort_order":"3","image":null},{"id":"295","question_id":"91","answer_type":"x","title":"More than five years","sort_order":"4","image":null}],"columns":[]},{"id":"93","survey_id":"81","title":"Write something about your experience with your Cricket career","description":"

Describe in briefly about your career and any other information about Cricket.<\/p>","qtype":"textarea","params":"{\"regular_expression\":\"\",\"validation_message\":\"\",\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"16","answers":[],"columns":[]},{"id":"98","survey_id":"81","title":"How long have you been part of the Baseball club\/team that you are representing to?","description":"","qtype":"choice","params":"{\"choice_type\":\"radio\",\"minimum_selections\":0,\"maximum_selections\":0,\"show_answers_inline\":0,\"show_custom_answer\":0,\"custom_answer_placeholder\":\"Other\",\"custom_answer_maxlength\":256,\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"19","answers":[{"id":"304","question_id":"98","answer_type":"x","title":"Less than 1 year","sort_order":"1","image":null},{"id":"305","question_id":"98","answer_type":"x","title":"More than a year but less than two","sort_order":"2","image":null},{"id":"306","question_id":"98","answer_type":"x","title":"Less than 5 years","sort_order":"3","image":null},{"id":"307","question_id":"98","answer_type":"x","title":"More than 5 years","sort_order":"4","image":null}],"columns":[]},{"id":"99","survey_id":"81","title":"Write something about your experience with your Baseball career","description":"

Write briefly about your Baseball career.<\/p>","qtype":"textarea","params":"{\"regular_expression\":\"\",\"validation_message\":\"\",\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"19","answers":[],"columns":[]},{"id":"96","survey_id":"81","title":"How long have you been part of the Hockey club\/team that you are representing to?","description":"

Let us know about your experience with the Hockey game.<\/p>","qtype":"choice","params":"{\"choice_type\":\"radio\",\"minimum_selections\":0,\"maximum_selections\":0,\"show_answers_inline\":0,\"show_custom_answer\":0,\"custom_answer_placeholder\":\"Other\",\"custom_answer_maxlength\":256,\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"18","answers":[{"id":"300","question_id":"96","answer_type":"x","title":"Less than a year","sort_order":"1","image":null},{"id":"301","question_id":"96","answer_type":"x","title":"One to two years","sort_order":"2","image":null},{"id":"302","question_id":"96","answer_type":"x","title":"More than two but less than 5 years","sort_order":"3","image":null},{"id":"303","question_id":"96","answer_type":"x","title":"More than 5 years","sort_order":"4","image":null}],"columns":[]},{"id":"97","survey_id":"81","title":"Write something about your experience with your Hockey career","description":"

Describe briefly about your experience or any other details about your career as a Hockey player.<\/p>","qtype":"textarea","params":"{\"regular_expression\":\"\",\"validation_message\":\"\",\"required\":0,\"show_in_report\":1,\"question_class\":\"\",\"title_class\":\"\",\"description_class\":\"\",\"body_class\":\"\"}","page_id":"18","answers":[],"columns":[]}],"mapping":[{"page_id":"14","question_id":"86","sort_order":"1"},{"page_id":"14","question_id":"87","sort_order":"2"},{"page_id":"15","question_id":"88","sort_order":"1"},{"page_id":"15","question_id":"89","sort_order":"2"},{"page_id":"17","question_id":"94","sort_order":"1"},{"page_id":"17","question_id":"95","sort_order":"2"},{"page_id":"16","question_id":"91","sort_order":"1"},{"page_id":"16","question_id":"93","sort_order":"2"},{"page_id":"19","question_id":"98","sort_order":"1"},{"page_id":"19","question_id":"99","sort_order":"2"},{"page_id":"18","question_id":"96","sort_order":"1"},{"page_id":"18","question_id":"97","sort_order":"2"}],"rules":[{"id":"1","title":"Show spport type when user is a professional sports person","survey_id":"81","page_id":"14","rule_content":"{\"condition\":\"AND\",\"rules\":[{\"id\":\"86\",\"field\":\"choice\",\"type\":\"integer\",\"input\":\"select\",\"operator\":\"in\",\"value\":[279]}],\"valid\":true}","rule_actions":"{\"action\":\"show_question\",\"page\":14,\"question\":87}","sort_order":"1"},{"id":"3","title":"Show Football related questions when the user is a Football player","survey_id":"81","page_id":"15","rule_content":"{\"condition\":\"AND\",\"rules\":[{\"id\":\"88\",\"field\":\"choice\",\"type\":\"integer\",\"input\":\"select\",\"operator\":\"in\",\"value\":[284]}],\"valid\":true}","rule_actions":"{\"action\":\"show_page\",\"page\":17,\"question\":0}","sort_order":"1"},{"id":"4","title":"Show Cricket related questions when the user is a Cricket player","survey_id":"81","page_id":"15","rule_content":"{\"condition\":\"AND\",\"rules\":[{\"id\":\"88\",\"field\":\"choice\",\"type\":\"integer\",\"input\":\"select\",\"operator\":\"in\",\"value\":[285]}],\"valid\":true}","rule_actions":"{\"action\":\"show_page\",\"page\":16,\"question\":0}","sort_order":"3"},{"id":"5","title":"Show Hockey related questions when the user is a Hockey player","survey_id":"81","page_id":"15","rule_content":"{\"condition\":\"AND\",\"rules\":[{\"id\":\"88\",\"field\":\"choice\",\"type\":\"integer\",\"input\":\"select\",\"operator\":\"in\",\"value\":[287]}],\"valid\":true}","rule_actions":"{\"action\":\"show_page\",\"page\":18,\"question\":0}","sort_order":"5"},{"id":"6","title":"Show Baseball related questions when the user is a Baseball player","survey_id":"81","page_id":"15","rule_content":"{\"condition\":\"AND\",\"rules\":[{\"id\":\"88\",\"field\":\"choice\",\"type\":\"integer\",\"input\":\"select\",\"operator\":\"in\",\"value\":[286]}],\"valid\":true}","rule_actions":"{\"action\":\"show_page\",\"page\":19,\"question\":0}","sort_order":"4"},{"id":"8","title":"Skip all other pages as this is the final page","survey_id":"81","page_id":"17","rule_content":"{\"condition\":\"OR\",\"rules\":[{\"id\":\"94\",\"field\":\"choice\",\"type\":\"integer\",\"input\":\"select\",\"operator\":\"is_empty\",\"value\":null},{\"id\":\"94\",\"field\":\"choice\",\"type\":\"integer\",\"input\":\"select\",\"operator\":\"is_not_empty\",\"value\":null}],\"valid\":true}","rule_actions":"{\"action\":\"finalize\",\"page\":0,\"question\":0}","sort_order":"1"},{"id":"9","title":"Skip all other pages as this is the final page","survey_id":"81","page_id":"16","rule_content":"{\"condition\":\"OR\",\"rules\":[{\"id\":\"91\",\"field\":\"choice\",\"type\":\"integer\",\"input\":\"select\",\"operator\":\"is_empty\",\"value\":null},{\"id\":\"91\",\"field\":\"choice\",\"type\":\"integer\",\"input\":\"select\",\"operator\":\"is_not_empty\",\"value\":null}],\"valid\":true}","rule_actions":"{\"action\":\"finalize\",\"page\":0,\"question\":0}","sort_order":"1"},{"id":"10","title":"Skip all other pages as this is the final page","survey_id":"81","page_id":"19","rule_content":"{\"condition\":\"OR\",\"rules\":[{\"id\":\"98\",\"field\":\"choice\",\"type\":\"integer\",\"input\":\"select\",\"operator\":\"is_empty\",\"value\":null},{\"id\":\"98\",\"field\":\"choice\",\"type\":\"integer\",\"input\":\"select\",\"operator\":\"is_not_empty\",\"value\":null}],\"valid\":true}","rule_actions":"{\"action\":\"finalize\",\"page\":0,\"question\":0}","sort_order":"1"}]}