Expand my Community achievements bar.

Reduce Image Size via LiveCycle Designer

Avatar

Level 1

Have created a script for adding images in Lifecycle Designer. How do i reduce the size of the image.

To add image via a button

form1.Review.Table9.Row5.SubformImageField.Table15.Row1.#subform[0].AddLandscapeImageField::click - (JavaScript, client)

//+ GENERATED - DO NOT EDIT (ID:A75573CB-AA75-43A0-8C14-B1B8155F5906 CRC:3486968773)

//+ Type: Action

//+ Result1: SetPresence("$Node2","visible")

//+ Node2: form1[0].Review[0].Table9[0].Row5[0].SubformImageField[0].ImageLandscape[0]

//+ Node1: form1[0].Review[0].Table9[0].Row5[0].SubformImageField[0].Table15[0].Row1[0].#subform[0].AddLandscapeImageField[0]

//+ Condition1: Button("$Node1","click")

//+ ActionName: AddLandscapeImageField.click

this.resolveNode("ImageLandscape").presence = "visible";

//-

and to remove image via button

form1.Review.Table9.Row5.SubformImageField.Table15.Row1.#subform[0].RemoveLandscapeImageField::click - (JavaScript, client)

//+ GENERATED - DO NOT EDIT (ID:DFC5E6AF-224C-4B06-9D36-2DD939D20968 CRC:189538153)

//+ Type: Action

//+ Result1: SetPresence("$Node2","hidden")

//+ Node2: form1[0].Review[0].Table9[0].Row5[0].SubformImageField[0].ImageLandscape[0]

//+ Node1: form1[0].Review[0].Table9[0].Row5[0].SubformImageField[0].Table15[0].Row1[0].#subform[0].RemoveLandscapeImageField[0]

//+ Condition1: Button("$Node1","click")

//+ ActionName: RemoveLandscapeImageField.click

this.resolveNode("ImageLandscape").presence = "hidden";

//-

I would like the images to be less than 500kb

0 Replies