Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Re: How can we hide a empty row from master pages of adobe forms

$
0
0

Hello Vipin,

 

Please read carefully below.

 

First of all there was no need to design each row of table separately in the layout.

 

The master page -> object -> Pagination is not editable. It happens when you design the table in the master page. This is not the case in the design view.

This problem appeared before in the thread below.

How to enable Adobe Form Options i.e. Pagination, page break


Anyways, if you still want to fix this using the current design, then follow the steps below.

 

1) Wrap all the rows in another parent sub form of type flowed ( Top to bottom ).

 

2) Write the below Javascript code on the each row sub formonly in Initialize event. Do not write it in any other event,

 

Suppose for example you have 5 fields in a row,

 

if ( this.field1.rawvalue == " "  &&

     this.field2.rawvalue == " "  &&

     this.field3.rawvalue == " "  &&

     this.field4.rawvalue == " "  &&

     this.field5.rawvalue == " ")

{

     this.presence = "hidden";

}

 

Note that if you have any currency field then the initial value might not be space. It may be something like "0.00". Do take care of that.

 

 

Note: What if there is a change in the design in future? What if they want to add more rows in that table? Tables should be designed in the Body page (this page is meant especially for dynamic positioning of elements). I would still suggest you to design the table in the body page and it doesn't take much effort. Let the framework do the maximum help for you .


Viewing all articles
Browse latest Browse all 9129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>