<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Validator behaivng so weirdly in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946297#M66497</link>
    <description>&lt;P&gt;The events work fine for me.&lt;/P&gt;
&lt;P&gt;Try to use Auto Evaluate?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, don't use console.log. I thought you learnt that lesson the last time&lt;/P&gt;
&lt;P&gt;&lt;LI-EMOJI id="lia_smiling-face-with-smiling-eyes" title=":smiling_face_with_smiling_eyes:"&gt;&lt;/LI-EMOJI&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;(there was supposed to be a smiley after this, but it got filtered out)&lt;BR /&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2024 09:34:04 GMT</pubDate>
    <dc:creator>Rocko</dc:creator>
    <dc:date>2024-04-26T09:34:04Z</dc:date>
    <item>
      <title>Validator behaving so weirdly</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946244#M66492</link>
      <description>&lt;P&gt;I am giving the input false but still validator is taking it as a true. Can anyone has similar experience about it?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;MASHUP 1 and from here i am sending the value to another mashup which is false but another mashup is still taking it as a true why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jamal8548_1-1714113401072.png"&gt;&lt;img src="https://www.ptcusercommunity.com/skins/images/81D70C6C2B79127C61116663D4056ED7/ptc_skin/images/image_not_found.png" alt="Jamal8548_1-1714113401072.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;MASHUP 2 : this validator execute when the value of the mashup parameter will change which i am sending from mashup 1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jamal8548_0-1714113326943.png"&gt;&lt;img src="https://www.ptcusercommunity.com/skins/images/81D70C6C2B79127C61116663D4056ED7/ptc_skin/images/image_not_found.png" alt="Jamal8548_0-1714113326943.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 14:25:42 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946244#M66492</guid>
      <dc:creator>MA8731174</dc:creator>
      <dc:date>2025-06-30T14:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Validator behaivng so weirdly</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946249#M66493</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/709891"&gt;@MA8731174&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Uncheck default output value in validator and try&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Velkumar_0-1714114278704.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/103123i353B8C513A39EFC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Velkumar_0-1714114278704.png" alt="Velkumar_0-1714114278704.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also use console.log to debug function further&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/VR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 06:51:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946249#M66493</guid>
      <dc:creator>Velkumar</dc:creator>
      <dc:date>2024-04-26T06:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Validator behaivng so weirdly</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946270#M66496</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/204705"&gt;@Velkumar&lt;/a&gt;&amp;nbsp; &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/244971"&gt;@Rocko&lt;/a&gt;&amp;nbsp;I am having very very strange issue. look my validator is working completely fine in the same mashup and on true and false it opens two different mashups and for the output of the validator i am sending through mashup parameter. Strange thing is the true value is always going well but when output is false it just does not appear there in second mashup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my validator from mashup 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jamal8548_0-1714120538972.png"&gt;&lt;img src="https://www.ptcusercommunity.com/skins/images/81D70C6C2B79127C61116663D4056ED7/ptc_skin/images/image_not_found.png" alt="Jamal8548_0-1714120538972.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;BR /&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;here is my code from the above validator from mashup 1&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jamal8548_1-1714120571541.png"&gt;&lt;img src="https://www.ptcusercommunity.com/skins/images/81D70C6C2B79127C61116663D4056ED7/ptc_skin/images/image_not_found.png" alt="Jamal8548_1-1714120571541.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and here is the validator from second mashup. here when i get false i want to close this mashup but unfortunately i am not able to do it why? can anyone please look at it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jamal8548_1-1714120440375.png"&gt;&lt;img src="https://www.ptcusercommunity.com/skins/images/81D70C6C2B79127C61116663D4056ED7/ptc_skin/images/image_not_found.png" alt="Jamal8548_1-1714120440375.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;here in this validator when i get false i get nothing in console.log but for true my console.log displays &lt;STRONG&gt;true.&lt;/STRONG&gt; thats why i am trying here the null/undefined etc..&lt;BR /&gt;&lt;BR /&gt;i tried this code too&lt;BR /&gt;if(input ===false)&lt;/P&gt;&lt;P&gt;output =false;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but no its just does not work&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;i have tried another thing now. in mashup two directly accessing true or false but same behaviour it just does not get false from mashup 1.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jamal8548_0-1714120957859.png"&gt;&lt;img src="https://www.ptcusercommunity.com/skins/images/81D70C6C2B79127C61116663D4056ED7/ptc_skin/images/image_not_found.png" alt="Jamal8548_0-1714120957859.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried below thing too. same results.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jamal8548_1-1714121117568.png"&gt;&lt;img src="https://www.ptcusercommunity.com/skins/images/81D70C6C2B79127C61116663D4056ED7/ptc_skin/images/image_not_found.png" alt="Jamal8548_1-1714121117568.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 08:45:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946270#M66496</guid>
      <dc:creator>MA8731174</dc:creator>
      <dc:date>2024-04-26T08:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Validator behaivng so weirdly</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946297#M66497</link>
      <description>&lt;P&gt;The events work fine for me.&lt;/P&gt;
&lt;P&gt;Try to use Auto Evaluate?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, don't use console.log. I thought you learnt that lesson the last time&lt;/P&gt;
&lt;P&gt;&lt;LI-EMOJI id="lia_smiling-face-with-smiling-eyes" title=":smiling_face_with_smiling_eyes:"&gt;&lt;/LI-EMOJI&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;(there was supposed to be a smiley after this, but it got filtered out)&lt;BR /&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 09:34:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946297#M66497</guid>
      <dc:creator>Rocko</dc:creator>
      <dc:date>2024-04-26T09:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Validator behaivng so weirdly</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946306#M66499</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/244971"&gt;@Rocko&lt;/a&gt;&amp;nbsp; I have removed console.log also now. but still it cannot take false value. console.log was for another test actually. can you please share your code for validators. Its still not working for me. If I&amp;nbsp; give hardcoded false then it works but it is not coming from 1st mashup.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 09:48:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946306#M66499</guid>
      <dc:creator>MA8731174</dc:creator>
      <dc:date>2024-04-26T09:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Validator behaivng so weirdly</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946309#M66500</link>
      <description>&lt;P&gt;Not much to share, I tried "Output=input;" as validator expression, just like you and enabled Auto Evaluate (I'm on TWX 9.5 though).&lt;/P&gt;
&lt;P&gt;Most probably this is an order of execution problem.&lt;/P&gt;
&lt;P&gt;Reduce the problem to the minimum. Create an empty mashup with a checkbox and a validator, link the output to a label and play with that before you embed this in a larger composition with popups, mashup closing and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 09:55:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946309#M66500</guid>
      <dc:creator>Rocko</dc:creator>
      <dc:date>2024-04-26T09:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Validator behaivng so weirdly</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946310#M66501</link>
      <description>&lt;P&gt;I have filled the checkbox on the same mashup 1 with this false and send the state of it to second mashup but same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;INFO&lt;/STRONG&gt;&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;With the output false i open another mashup which is mashup 3 and i pass the output to the mashup parameter of mashup 2 so thats an issue may be. but on father mashup i put checkbox and there the output is working completely fine but i am unable to take it through mashup parameters actually.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 10:01:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946310#M66501</guid>
      <dc:creator>MA8731174</dc:creator>
      <dc:date>2024-04-26T10:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Validator behaivng so weirdly</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946327#M66504</link>
      <description>&lt;P&gt;So if i open the mashup 2 again after closing it manually then it gets close means for the first it is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WORKFLOW: i open the mashup 2 then from it i&amp;nbsp; do something to open mashup 3 but onclose function of mashup 3 i send the mashup parameter to mashup 2 to close it but when i close mashup 3 it does not get close means mashup 2 is still open then i close it manually and if i open the mashup 2 again it gets close means now the its closing the mash up 2. how can i fix this execution problem. i dont think so i have much area available to play in thingworx, any idea?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 10:47:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Validator-behaving-so-weirdly/m-p/946327#M66504</guid>
      <dc:creator>MA8731174</dc:creator>
      <dc:date>2024-04-26T10:47:14Z</dc:date>
    </item>
  </channel>
</rss>

