cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adobe forms - hide field, move fields up

Former Member
53,468

Hello,

I am a newbie trying to fix an Adobe forms issue. I am using LiveCycle Designer 7.1 and scripting using FormCalc.

I have three address fields stras, street_4, city_zip displayed one below the other. Field street_4 is not mandatory.

If street_4 is blank, the address should be displayed as follows:

stras

city_zip

If street_4 contains a value, it should be displayed as:

stras

street_4

city_zip

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.

if (HasValue($) == 0)

then $.presence = "hidden"

else $.presence = "visible"

endif

Thanks,

Sreeni

View Entire Topic
Sellathurai
Explorer
0 Likes

FormPurchaseOrderRequest.Main.Invoice.Table1.Row1.Table4[1].Row1.Cell2::initialize - (JavaScript, client)
if ($record.PurchaseOrder.BuyerParty.BuyerID.value != null && $record.PurchaseOrder.BuyerParty.BuyerID.value != '') {
// Actions to take when BuyerID has a value
this.presence = "hidden"; // Example: Hiding the current object if BuyerID has a value
} else {
// Actions to take when BuyerID does NOT have a value (either null or empty)
this.presence = "visible"; // Example: Making the current object visible if BuyerID does not have a value
}

Use This  type of code its will Work I think.....