cancel
Showing results for 
Search instead for 
Did you mean: 

Conditionally display Border for table row

Former Member
0 Kudos

Hi,

I have created an interactive form which I am sending to user as email attachment. This form is fillable and created with PDF Version 1.7 (Acrobat 8.x). I have set "Acrobat and Adobe Reader 8.0 or Later" as Target version in Form properties. User has Adobe version 11.0.11 installed on his machine.

This form has timesheet records for users and each user may have single or multiple records. My form element Hierarchy contains BodyPage -> SubForm -> Output Table -> DATA -> Fields. My requirement is to show the border for Row when there is new user. I have set border for "DATA" element as Solid border and it appears for all records with this setting. I inserted the JavaScript code in Ready:Layout event of "DATA" which looks as below -

if ( this.resolveNode("fieldname").rawValue != null )

{this.border.presence = "visible;}

else {this.border.presence = "invisible";}

Here fieldname contains user name and in case of multiple records for the same user, I am clearing value in the internal table for all records except first record. This works fine when I check the result in Preview PDF and Border for table row appears only when it is first record for the user. However when I execute program and send pdf as attachment and when we open it through email; there are no borders. There is also no error file generated.

Kindly provide your suggestions.

Regards,

Nishad

Recent program execution also generated the error file for Adobe. It shows rendering issue. Any idea what steps should be taken to resolve it ? Message was edited by: Nishad Koli

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

We resolved this issue and below steps were followed for the same -

1. Open Adobe form through SFP and go to Layout

2. Go to "Form Properties -> Server"

3. Uncheck both the checkboxes i.e. "Allow Form rendering to be cached on the server" and "Form requires server side scripting/data binding"

JavaScript code started working as expected during client side rendering after this change.

Regards,

Nishad

Answers (0)