<?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: Adobe forms - hide field, move fields up in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744232#M1807331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ana,&lt;/P&gt;&lt;P&gt;Did you ever solve this problem?&lt;/P&gt;&lt;P&gt;I have encountered the same problem with "hiding" a field in order to get the space occupied by the field to shift up the fields below.&lt;/P&gt;&lt;P&gt;I have tried both positioned and flowed, using wither a plain text field or the same field within a subform of the main form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 22:24:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-08-14T22:24:56Z</dc:date>
    <item>
      <title>Adobe forms - hide field, move fields up</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaq-p/4744226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a newbie trying to fix an Adobe forms issue. I am using LiveCycle Designer 7.1 and scripting using FormCalc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three address fields stras, street_4, city_zip displayed one below the other. Field street_4 is not mandatory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If street_4 is blank, the address should be displayed as follows:&lt;/P&gt;&lt;P&gt;stras&lt;/P&gt;&lt;P&gt;city_zip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If street_4 contains a value, it should be displayed as:&lt;/P&gt;&lt;P&gt;stras&lt;/P&gt;&lt;P&gt;street_4&lt;/P&gt;&lt;P&gt;city_zip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a subform wraping all the three fields. Wrote a (FormCalc, Client) script in the initialize event of street_4. If street_4 is blank, an empty space is being displayed. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (HasValue($) == 0)&lt;/P&gt;&lt;P&gt;then $.presence = "hidden" &lt;/P&gt;&lt;P&gt;else $.presence = "visible" &lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 19:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaq-p/4744226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T19:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adobe forms - hide field, move fields up</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744227#M1807326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of the form calc, try to use java script. and also use the event layout:ready,not the initialize event.&lt;/P&gt;&lt;P&gt;i doubt your script code. i usually follow the code which automatically gives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the correct usage of javascript , i may be wrong in syntax. but it should be some thing like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if( this.rawValue == ''){
 this.presence = "hidden";
}
else
{
this.presence = "visible";
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vijay Babu Dudla on Oct 29, 2008 4:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 19:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744227#M1807326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T19:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adobe forms - hide field, move fields up</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744228#M1807327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still couldn't fix this issue. In the development environment, once the fields are in a subform, changing the "presence" property to "hidden" is moving the other fields up. I am not able to do it in run time using script (FormCalc or JavaScript). I was able to change the value from blank to a text or vice versa. But, when I change the "presence" property, the value is invisible/hidden but the other fields are not moving up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sreeni ChannamRaju on Oct 30, 2008 9:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 20:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744228#M1807327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T20:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adobe forms - hide field, move fields up</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744229#M1807328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this situation i handle with the condition , instead of script(formcalc/javascript). create the condition in the context, then simply drag node to the layout , will be taken care automatically. there will be a true and false forms by default if you drag and drop.if it is true then show else don't. this way the elements will move up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 03:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744229#M1807328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T03:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adobe forms - hide field, move fields up</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744230#M1807329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone answer this question? I tried Vijay's suggestion but still, field C is not moving up to fieldA's position when condition is set in context for fieldA and field B (satisfying that both are not displayed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample:&lt;/P&gt;&lt;P&gt;field A&lt;/P&gt;&lt;P&gt;field B&lt;/P&gt;&lt;P&gt;field C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 04:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744230#M1807329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-15T04:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adobe forms - hide field, move fields up</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744231#M1807330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, If the fields are not moving up, set the subform to Flowed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 13:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744231#M1807330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-06T13:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adobe forms - hide field, move fields up</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744232#M1807331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ana,&lt;/P&gt;&lt;P&gt;Did you ever solve this problem?&lt;/P&gt;&lt;P&gt;I have encountered the same problem with "hiding" a field in order to get the space occupied by the field to shift up the fields below.&lt;/P&gt;&lt;P&gt;I have tried both positioned and flowed, using wither a plain text field or the same field within a subform of the main form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 22:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744232#M1807331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-14T22:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adobe forms - hide field, move fields up</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744233#M1807332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, you need a bigger subform which has Flowed type.&lt;/P&gt;&lt;P&gt;Within it, says you insert subform A follow by subform B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hide the whole subform A, and subform B should be move up automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Xiang Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 06:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744233#M1807332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-15T06:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adobe forms - hide field, move fields up</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744234#M1807333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreeni,&lt;/P&gt;&lt;P&gt;I think the problem is already solved but i have some input for all the guys who might come over this issue and are not able to solve it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will focus on JavaScript because I am more into that than into FormCalc scripting.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The main problem is that you use the value &lt;STRONG&gt;"hidden" &lt;/STRONG&gt;for the &lt;STRONG&gt;presence attribute&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution to this problem is the following: &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Using&lt;STRONG&gt; this.presence = "hidden"; &lt;/STRONG&gt;will hide the complete element on your form. Thus, all the elements which are below the hidden one are moved up.&lt;/LI&gt;&lt;LI&gt;Using &lt;STRONG&gt;this.presence = "invisible"; &lt;/STRONG&gt;will only hide the text inside the element not the element itself. Thus, the elements below stay where they are and nothing gets shifted. &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is not really dependent on using subforms. You can hide the whole subform using this technique or only elements inside the subform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here a short code snippet:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Hide the whole element and shift lower elements up:&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;data.MAIN.HeaderData.ADDRESS_DATA.ADDRESS_DATA_ITEM.NAME2::validate - (JavaScript, client)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($record.ADDRESS_DATA.NAME2.value == null || $record.ADDRESS_DATA.NAME2.value == ''){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.presence = "hidden";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. &lt;STRONG&gt;Hiding only the TEXT INSIDE the element NOT the element itself ==&amp;gt; no shifting of other elements:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data.MAIN.HeaderData.ADDRESS_DATA.ADDRESS_DATA_ITEM.NAME3::validate - (JavaScript, client)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($record.ADDRESS_DATA.NAME3.value == null || $record.ADDRESS_DATA.NAME3.value == ''){&lt;/P&gt;&lt;P&gt;this.presence = "invisible";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 08:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/4744234#M1807333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-01T08:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adobe forms - hide field, move fields up</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/13799420#M4842113</link>
      <description>&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;FormPurchaseOrderRequest.Main.Invoice.Table1.Row1.Table4[1].Row1.Cell2::initialize - (JavaScript, client)&lt;/FONT&gt;&lt;BR /&gt;if ($record.PurchaseOrder.BuyerParty.BuyerID.value != null &amp;amp;&amp;amp; $record.PurchaseOrder.BuyerParty.BuyerID.value != '') {&lt;BR /&gt;// Actions to take when BuyerID has a value&lt;BR /&gt;this.presence = "hidden"; // Example: Hiding the current object if BuyerID has a value&lt;BR /&gt;} else {&lt;BR /&gt;// Actions to take when BuyerID does NOT have a value (either null or empty)&lt;BR /&gt;this.presence = "visible"; // Example: Making the current object visible if BuyerID does not have a value&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Use This&amp;nbsp; type of code its will Work I think.....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 12:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/13799420#M4842113</guid>
      <dc:creator>Sellathurai</dc:creator>
      <dc:date>2024-08-19T12:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adobe forms - hide field, move fields up</title>
      <link>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/14155464#M4920303</link>
      <description>&lt;P&gt;I could not get that to work either.&lt;/P&gt;&lt;P&gt;Tried&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Content flowing&lt;/LI&gt;&lt;LI&gt;hidden / invisible&lt;/LI&gt;&lt;LI&gt;different events&lt;/LI&gt;&lt;LI&gt;JS / FormCalc&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;nothing worked.&lt;/P&gt;&lt;P&gt;So I just changed the height property of the subform to 1 pt and hid the content of the subform.&amp;nbsp; Worked like a charm&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;data.Teilformular1::initialize - (FormCalc, server)&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt; ( $record.xxxxx.isNull ) &lt;SPAN class=""&gt;then&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="andale mono,times"&gt;this.h &lt;SPAN class=""&gt;=&lt;/SPAN&gt; "1 pt"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;endif&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 07:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adobe-forms-hide-field-move-fields-up/qaa-p/14155464#M4920303</guid>
      <dc:creator>matthias_b2</dc:creator>
      <dc:date>2025-07-18T07:32:01Z</dc:date>
    </item>
  </channel>
</rss>

