﻿<?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  » isvalidresponse on Surveypage doesn't work</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 18 Sep 2026 14:16:13 GMT</lastBuildDate><ttl>20</ttl><item><title>isvalidresponse on Surveypage doesn't work</title><link>https://forums.millisecond.com/Topic16400.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I have two textboxes on a surveypage (among other controls like checkboxes ) and I want to check that if the first textbox is populated with a value, the second one is populated as well.&lt;br/&gt;If not, the responses are not valid and the next button shouldn't take you to the next page. I tried to use the isvalid function on the Surveypage but it doesn't work.&lt;br/&gt;I saw another much older post that the user was facing the same issue and it was listed as a bug. Was it resolved, should I keep trying to use the isValid on a surveypage?&lt;br/&gt;&lt;br/&gt;If not, is it possible to set the required attribute of a textbox dynamically, according to the response of another textbox?&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;Konstantina&lt;br/&gt;</description><pubDate>Mon, 01 Jun 2015 14:23:22 GMT</pubDate><dc:creator>Konstantina</dc:creator></item><item><title>RE: isvalidresponse on Surveypage doesn't work</title><link>https://forums.millisecond.com/Topic16410.aspx</link><description>Yes, that is correct.&lt;br/&gt;</description><pubDate>Mon, 01 Jun 2015 14:23:22 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: isvalidresponse on Surveypage doesn't work</title><link>https://forums.millisecond.com/Topic16409.aspx</link><description>Thanks Dave! Also, just to confirm- the isvalid attribute doesn't work with surveypages. Is that correct?&lt;br/&gt;</description><pubDate>Mon, 01 Jun 2015 13:30:46 GMT</pubDate><dc:creator>Konstantina</dc:creator></item><item><title>RE: isvalidresponse on Surveypage doesn't work</title><link>https://forums.millisecond.com/Topic16407.aspx</link><description>No, if you run the &amp;lt;surveypage&amp;gt;s via a &amp;lt;block&amp;gt; instead of a &amp;lt;survey&amp;gt;, there is no way to prevent them from resetting, I'm afraid.&lt;br/&gt;</description><pubDate>Mon, 01 Jun 2015 10:08:16 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: isvalidresponse on Surveypage doesn't work</title><link>https://forums.millisecond.com/Topic16406.aspx</link><description>Thank you very much David!&lt;br/&gt;&lt;br/&gt;The thing is that I am reusing the same surveypage keeping all the textboxes and checkboxes the same while I am only changing a caption.&lt;br/&gt;Mystructure is more like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt spelling_test&amp;gt;&lt;br/&gt;/ blocks = [1=spelling]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block spelling&amp;gt;&lt;br/&gt;/trials = [1-2=pg1;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage pg1&amp;gt;&lt;br/&gt;/ caption = "Page 1"&lt;br/&gt;/ questions = [1=tb1; 2=tb2]&lt;br/&gt;/ branch = [if (textbox.tb1.response!="" &amp;amp;&amp;amp; textbox.tb2.response=="") surveypage.pg1]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage pg2&amp;gt;&lt;br/&gt;/ caption = "Page 2"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox tb1&amp;gt;&lt;br/&gt;/ required = false&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox tb2&amp;gt;&lt;br/&gt;/ required = false&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;When I apply the code suggested the textboxes are reset after the branching. &lt;br/&gt;Is there anything you can suggest in order to prevent that?&lt;br/&gt;&lt;br/&gt;Your help is much appreciated!&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Konstantina&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 01 Jun 2015 10:05:01 GMT</pubDate><dc:creator>Konstantina</dc:creator></item><item><title>RE: isvalidresponse on Surveypage doesn't work</title><link>https://forums.millisecond.com/Topic16401.aspx</link><description>What you ought to do is use the /branch attribute instead. I.e., if the 1st textbox is not empty and the 2nd is empty, run the same surveypage again:&lt;br/&gt;&lt;br/&gt;&amp;lt;survey mysurvey&amp;gt;&lt;br/&gt;/ pages = [1=pg1; 2=pg2]&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage pg1&amp;gt;&lt;br/&gt;/ caption = "Page 1"&lt;br/&gt;/ questions = [1=tb1; 2=tb2]&lt;br/&gt;/ branch = [if (textbox.tb1.response!="" &amp;amp;&amp;amp; textbox.tb2.response=="") surveypage.pg1]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage pg2&amp;gt;&lt;br/&gt;/ caption = "Page 2"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox tb1&amp;gt;&lt;br/&gt;/ required = false&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox tb2&amp;gt;&lt;br/&gt;/ required = false&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 01 Jun 2015 09:29:02 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>