cancel
Showing results for 
Search instead for 
Did you mean: 

Java script in Adobe Forms

Former Member
0 Kudos

Dear All, 

I have two scenarios as follows.

1) currently there are 7 logos. We need to upload logo in Adobe Forms based on Personnel area(PA) and sub area(PSA). i have written the below script in Initialize event, still it's not working.

if (WERKS.rawValue == P107 and BTRTL.rawValue == ABCD)

{

this.presence = "visible";

}

2) We have three allowances with text and value(Amount as below. If the value is null or zero, then the text and value shold not be displayed and gap needs to be adjusted automatically.

Transportatio Allowance        1000.00

Medical Alllowance                 0.00

Other Allowance                     2000.00

This should be displayed as

Transportatio Allowance        1000.00

Other Allowance                     2000.00

Please do the needful ASAP.

Regards

Venkat

Accepted Solutions (0)

Answers (2)

Answers (2)

LBretschneider
Product and Topic Expert
Product and Topic Expert
0 Kudos

Regarding the first issue - just to be pretty sure:

Did you try to sorround the values with ""?

if (WERKS.rawValue == "P107" and BTRTL.rawValue == "ABCD")

{

this.presence = "visible";

}

Kind Regards,

Lukas

navip
Active Participant
0 Kudos

For the 2nd Issue ....

Take a table with 3 rows and 2 columns wrapped in subform(Flowed), Write FormCalm on the 2nd column to hide if null.

---

Naveen

Former Member
0 Kudos

Hi Naveen,

Thanks for your reply.

For 2nd issue: If we take the table, the border lines also displayed. But as per my requirement, solid lines are not required to display i.e. needs to be displayed in the below format only.

Transportatio Allowance        1000.00

Other Allowance                     2000.00

And I also tried with Java script, but it's not working.

Please suggest.

Regards

Venkat

navip
Active Participant
0 Kudos

If you don't want to display the border lines hope we can hide them.

---

Naveen

Former Member
0 Kudos

Hi Naveen,

can you please provide steps tohide border lines.

Thanks

Venkat

navip
Active Participant
0 Kudos

From hierarchy select the table which you have created then goto Palettes menu--> select border, in the border select the drop down---> from the drop down select "none".

---

Naveen

Former Member
0 Kudos

Dear Naveen,

Thanks. 2nd issue got resolved. Please help me 1st issue.

Regards

Venkat

Ryan-Crosby
Active Contributor
0 Kudos

Hi Venkat,

I would move the coding of the visibility stuff to the form:ready event.

Regards,

Ryan Crosby

navip
Active Participant
0 Kudos

Logos are displayed in Master page or Design view?

---

Naveen