﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » How to dynamically change if a question is required</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 06 Jun 2026 19:14:24 GMT</lastBuildDate><ttl>20</ttl><item><title>How to dynamically change if a question is required</title><link>https://forums.millisecond.com/Topic17209.aspx</link><description>Hi I want people to first be notified if they didn't answer a survey question and then be able to skip, in lines with ideas of informed consent and being able to skip questions. . However, it appears the status of /required does not update until after the whole trial (surveypage) has been submitted. Is there a workaround?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have tried a lot of options but the most obvious, which doesn't work is:&lt;br/&gt;&lt;br/&gt;For instance this doesn't work&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage cultural_religious&amp;gt;&lt;br/&gt;/caption ="&amp;lt;%values.demographicpageinstructions%&amp;gt;"&lt;br/&gt;/ fontstyle = ("Verdana", -14, false, true, false, false, 5, 0)&lt;br/&gt;/ questions = [1=school; 2=govt; 3=religiosity] &lt;br/&gt;/ itemspacing = 2%&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ ontrialend = [radiobuttons.religiosity.required = false]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;And this works (changing it to not required at the beginning) but doesn't do what I want&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage cultural_religious&amp;gt;&lt;br/&gt;/ ontrialbegin = [radiobuttons.religiosity.required = false]&lt;br/&gt;/caption ="&amp;lt;%values.demographicpageinstructions%&amp;gt;"&lt;br/&gt;/ fontstyle = ("Verdana", -14, false, true, false, false, 5, 0)&lt;br/&gt;/ questions = [1=school; 2=govt; 3=religiosity]&amp;nbsp;&lt;br/&gt;/ itemspacing = 2%&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 24 Sep 2015 02:19:01 GMT</pubDate><dc:creator>gaumarjos</dc:creator></item><item><title>RE: How to dynamically change if a question is required</title><link>https://forums.millisecond.com/Topic17214.aspx</link><description>&amp;gt; However, it appears the status of /required does not update until after the whole trial (surveypage) has been submitted. Is there a &amp;gt; workaround?&lt;br/&gt;&lt;br/&gt;/ontrialend is executed after the responses have been submitted. If you were to run the same page / question again, the required status would be false. It is not possible to change a question's required status *while* the page / trial is running.&lt;br/&gt;&lt;br/&gt;There is no real workaround. A somewhat inelegant option would be to include an explicit "decline to answer" response option:&lt;br/&gt;&lt;br/&gt;&amp;lt;survey mysurvey&amp;gt;&lt;br/&gt;/ pages = [1=mypage]&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage mypage&amp;gt;&lt;br/&gt;/ questions = [1=myrb]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons myrb&amp;gt;&lt;br/&gt;/ caption = "Pick one"&lt;br/&gt;/ options = ("A", "B", "Decline to answer")&lt;br/&gt;/ required = true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 24 Sep 2015 02:19:01 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>