<?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>Question Re: Cannot hide a QR Code in Adobe Form even when no value in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cannot-hide-a-qr-code-in-adobe-form-even-when-no-value/qaa-p/12183591#M4557005</link>
    <description>&lt;P&gt;Hi Mithun,&lt;BR /&gt;I could never replicate your issue, when I copy your second scripting into an empty form with a qr code, the qr code disappears in the preview.&lt;BR /&gt;There might be some side effects in play here. In order to check this:&lt;/P&gt;&lt;P&gt;- reduce your template to only the minimum&lt;BR /&gt;- make your template available to the public, so I it is possible to replicate the issue&lt;BR /&gt;- open a SAP incident so colleagues can check&lt;/P&gt;&lt;P&gt;Sorry, but I do not think I can check further here, as the functionality works in general.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Pascal&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2020 09:39:35 GMT</pubDate>
    <dc:creator>PascalBremer</dc:creator>
    <dc:date>2020-06-22T09:39:35Z</dc:date>
    <item>
      <title>Cannot hide a QR Code in Adobe Form even when no value</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-hide-a-qr-code-in-adobe-form-even-when-no-value/qaq-p/12183587</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;
  &lt;P&gt;I've a simple QR code in an Adobe form, and I want it not to print when the value in the binding field is empty. Such a simple thing to do, but it's just stuck, and doesn't hide at all.&lt;/P&gt;
  &lt;P&gt;I've tried all the different ways I know, and as suggested in the questions &lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;&lt;A href="https://answers.sap.com/questions/12527818/hide-the-qr-code-in-sap-adobe-forms-if-there-is-no.html" target="_blank"&gt;Hide the QR code in sap Adobe forms if there is no data&lt;/A&gt;, &lt;/LI&gt; 
   &lt;LI&gt;&lt;A href="https://answers.sap.com/questions/13006468/adobe-forms-how-to-hide-empty-qr-code-in-table-row.html" target="_blank"&gt;Adobe Forms how to hide empty QR Code in table rows&lt;/A&gt; and &lt;/LI&gt; 
   &lt;LI&gt;&lt;A href="https://answers.sap.com/questions/9225626/2d-barcodes-visible-in-adobe-forms-layout-even-tho.html" target="_blank"&gt;2D barcodes visible in ADOBE FORMS layout even though no data is present&lt;/A&gt;. &lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;But none of those ways work for me. The QR code still gets printed, and when scanned by the mobile, shows empty data.&lt;/P&gt;
  &lt;P&gt;Does anyone has any further ideas, on how to get it off, when there's no value?&lt;/P&gt;
  &lt;P&gt;Some screenshots attached for my scenario... &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1818553-qr-code.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1818554-qr-code1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1818555-qr-code-script.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Empty Output:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1818556-qr-code-output.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 03:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-hide-a-qr-code-in-adobe-form-even-when-no-value/qaq-p/12183587</guid>
      <dc:creator>Mithun_Kr</dc:creator>
      <dc:date>2020-06-22T03:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot hide a QR Code in Adobe Form even when no value</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-hide-a-qr-code-in-adobe-form-even-when-no-value/qaa-p/12183588#M4557002</link>
      <description>&lt;P&gt;What's most surprising is... Even if I enter code like this, the QRcode still shows in the output.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; data.#pageSet[0].Page1.Border.Box.GV_QRPKKEY::ready:form - (FormCalc, client)
$.presence = "hidden"
$.presence = "invisible"&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What's going on here?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 04:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-hide-a-qr-code-in-adobe-form-even-when-no-value/qaa-p/12183588#M4557002</guid>
      <dc:creator>Mithun_Kr</dc:creator>
      <dc:date>2020-06-22T04:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot hide a QR Code in Adobe Form even when no value</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-hide-a-qr-code-in-adobe-form-even-when-no-value/qaa-p/12183589#M4557003</link>
      <description>&lt;P&gt;Hi Mithun,&lt;/P&gt;&lt;P&gt;your scripting is wrong. Firstly in FormCalc it is enough if you check for empty value via hasValue function. Secondly the &lt;STRONG&gt;OR&lt;/STRONG&gt; operation in FormCalc only uses one vertical line.&lt;BR /&gt;(see: &lt;A href="https://help.adobe.com/en_US/livecycle/11.0/DesignerFormCalcRef/WS92d06802c76abadb-32254d55129f5ee7c98-7fff.2.html"&gt;https://help.adobe.com/en_US/livecycle/11.0/DesignerFormCalcRef/WS92d06802c76abadb-32254d55129f5ee7c98-7fff.2.html&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;This would transform your code to something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if (not hasValue($)) then
	$.presence = "hidden"
endif&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So essentially the presence attribute is never overwritten.&lt;BR /&gt;In the future use integrated debugging options to check this.&lt;BR /&gt;&lt;BR /&gt;If you Preview as Dynamic XML or interactive form:&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;xfa.host.messageBox("This is a message", "This is a title", 3, 1);
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you Preview as Static PDF:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;xfa.log.message(0, "test message")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Your message will be written to the log tab: Menu-&amp;gt;Window-&amp;gt;Report (to enable the view).&lt;BR /&gt;Also any syntax error will be logged here.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Pascal&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 09:15:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-hide-a-qr-code-in-adobe-form-even-when-no-value/qaa-p/12183589#M4557003</guid>
      <dc:creator>PascalBremer</dc:creator>
      <dc:date>2020-06-22T09:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot hide a QR Code in Adobe Form even when no value</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-hide-a-qr-code-in-adobe-form-even-when-no-value/qaa-p/12183590#M4557004</link>
      <description>&lt;P&gt;Thanks for the tip, Pascal.&lt;/P&gt;&lt;P&gt;However, in my case, it doesn't work even if I put the presence statement without any conditions (as i mentioned in the comment below the OP). In fact initially, I did try the exact condition in the script as you mentioned.&lt;/P&gt;&lt;P&gt;Any ideas, why the QR code just won't hide itself?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 09:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-hide-a-qr-code-in-adobe-form-even-when-no-value/qaa-p/12183590#M4557004</guid>
      <dc:creator>Mithun_Kr</dc:creator>
      <dc:date>2020-06-22T09:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot hide a QR Code in Adobe Form even when no value</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-hide-a-qr-code-in-adobe-form-even-when-no-value/qaa-p/12183591#M4557005</link>
      <description>&lt;P&gt;Hi Mithun,&lt;BR /&gt;I could never replicate your issue, when I copy your second scripting into an empty form with a qr code, the qr code disappears in the preview.&lt;BR /&gt;There might be some side effects in play here. In order to check this:&lt;/P&gt;&lt;P&gt;- reduce your template to only the minimum&lt;BR /&gt;- make your template available to the public, so I it is possible to replicate the issue&lt;BR /&gt;- open a SAP incident so colleagues can check&lt;/P&gt;&lt;P&gt;Sorry, but I do not think I can check further here, as the functionality works in general.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Pascal&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 09:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-hide-a-qr-code-in-adobe-form-even-when-no-value/qaa-p/12183591#M4557005</guid>
      <dc:creator>PascalBremer</dc:creator>
      <dc:date>2020-06-22T09:39:35Z</dc:date>
    </item>
  </channel>
</rss>

