These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Editable form with images

dallass
Registered: Jan 1 2010
Posts: 3

Hello!

This is my first post. Seems that everything I search on google about livecycle brings me to this forum.

I need some help regarding some editable forms that contains many images.
I am a beginer regarding livecycle design and before I study some more I would firstly like to ask if it is possible to do what I want.
Please see my questions [url=http://www.ziddu.com/download/7980033/questions.pdf.php]here[/url] and [url=http://www.ziddu.com/download/7980035/user_saved_file.pdf.php]here[/url].
Thank you

P.S. I have uploaded the files to that site because seems that this forum does not allow uplods.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

to display several images with your previous and next buttons you need another script than
image = window_01.value.image.valuenewImage.rawValue = image;

Because the script has to check, witch image is currently selected to replace it with the correct image.
The syntax for the previous button can look like:
form1.#subform[0].Button[0]::click - (JavaScript, client) // variables for every imagevar W01 = window_01.value.image.value;var W02 = window_02.value.image.value;var W03 = window_03.value.image.value;var W04 = window_04.value.image.value;var W05 = window_05.value.image.value; //Check out what image is currently displayed and replace it the the previous imageif (newImage.rawValue == W05){newImage.rawValue = W04;}elseif (newImage.rawValue == W04){newImage.rawValue = W03;}elseif (newImage.rawValue == W03){newImage.rawValue = W02;}elseif (newImage.rawValue == W02){newImage.rawValue = W01;}else{//If no image is displayed, show image 5newImage.rawValue = W05;}

And the next button could use this syntax.
 form1.#subform[0].Button[1]::click - (JavaScript, client) // variables for every imagevar W01 = window_01.value.image.valuevar W02 = window_02.value.image.valuevar W03 = window_03.value.image.valuevar W04 = window_04.value.image.valuevar W05 = window_05.value.image.value //Check out what image is currently displayed and replace it the the next imageif (newImage.rawValue == W01){newImage.rawValue = W02;}elseif (newImage.rawValue == W02){newImage.rawValue = W03;}elseif (newImage.rawValue == W03){newImage.rawValue = W04;}elseif (newImage.rawValue == W04){newImage.rawValue = W05;}else{//If no image is displayed, show image 1newImage.rawValue = W01;}

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

dallass
Registered: Jan 1 2010
Posts: 3
Thank you for your answer. It really helped.
Can you please help me with another issue:

I have 4 fields:

1. Drop down list with values: 1, 2 and 3
2. TextField_A
3. TextField_B
4. TextField_C

What do I want:

When from dropdownlist value 1 is selected: Textfield_A and Textfield_B to be hidden and Textfiled_C to be visible;
When from dropdownlist value 2 is selected: Textfield_A and Textfield_C to be hidden and Textfiled_B to be visible;
When from dropdownlist value 3 is selected: Textfield_A and Textfield_B to be hidden and Textfield_C to be hidden.

What I have done:

 form1.#subform[0].DropDownList1::change - (JavaScript, client)  if (this.rawValue == 1){TextField_A.presence = "invisible";TextField_B.presence = "invisible";TextField_C.presence = "visible";}elseif (this.rawValue == 2){TextField_A.presence = "invisible";TextField_B.presence = "visible";TextField_C.presence = "invisible";}elseif (this.rawValue == 3){TextField_A.presence = "invisible";TextField_B.presence = "invisible";TextField_C.presence = "invisible";}

Seems that it does not work. It works if I click twice on each of dropdownlist items.

I have uploaded the file [url=http://www.ziddu.com/download/8003180/Untitled.pdf.php]here[/url]