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

Issue with submitted forms and fields not appearing

Tomasz
Registered: Aug 19 2009
Posts: 5
Answered

I am a beginner at using Livecycle and I have nearly completed a very basic call log.

The idea is that one office would fill it out, send it on to be action'd and then returned to the sending office for filing. The problem is with a drop down list that has an associated invisible text box that has text that appears when different choices are made. When the form is returned for filing, the text field is invisible while the choice made in the drop down list is intact. Everything else on the form is functioning just fine.

Can anyone please help me out?

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
What event in the script editor did you use for scripting to make the hidden text field in/visible?
And, what's the code you used for?

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Tomasz
Registered: Aug 19 2009
Posts: 5
I used an example I found online for the script that did exactly what I needed and fixed it up to include all the entries I was going to use.

Here is the XML script:

<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>Row2.Text.value.text.value = this.rawValue;

Airdrie-Chestermere
Athabasca-Redwater
Banff-Cochrane
Barrhead-Morinville-Westlock
Battle River-Wainwright
Bonnyville-Cold Lake
Calgary-Bow
Calgary-Cross
Calgary-East
Calgary-Egmont
Calgary-Elbow
Calgary-Fish Creek
Calgary-Foothills
Calgary-Fort
Calgary-Hays
Calgary-Lougheed
Calgary-Mackay
Calgary-Montrose
Calgary-North Hill
Calgary-North West
Calgary-Nose Hill
Calgary-Shaw
Calgary-West
Cardston-Taber-Warner
Cypress-Medicine Hat
Drayton Valley-Calmar
Drumheller-Stettler
Dunvegan-Central Peace
Edmonton-Beverly-Clareview
Edmonton-Calder
Edmonton-Castle Downs
Edmonton-Decore
Edmonton-Ellerslie
Edmonton-Glenora
Edmonton-Manning
Edmonton-McClung
Edmonton-Meadowlark
Edmonton-Mill Creek
Edmonton-Mill Woods
Edmonton-Rutherford
Edmonton-Whitemud
Foothills-Rocky View
Fort Saskatchewan-Vegreville
Grande Prairie-Smoky
Grande Prairie-Wapiti
Highwood
Innisfail-Sylvan Lake
Lac La Biche-St. Paul
Lacombe-Ponoka
Leduc-Beaumont-Devon
Lesser Slave Lake
Lethbridge-West
Little Bow
Livingstone-Macleod
Medicine Hat
Olds-Didsbury-Three Hills
Peace River
Red Deer-North
Red Deer-South
Rocky Mountain House
Sherwood Park
Spruce Grove-Sturgeon-St. Albert
St. Albert
Stony Plain
Strathcona
Strathmore-Brooks
Vermilion-Lloydminster
West Yellowhead
Wetaskiwin-Camrose
Whitecourt-Ste. Anne
Not availableRob Anderson
Jeff Johnson
Janis Tarchuk
Ken Kowalski
Doug Griffiths
Genia Leskiw
Alana DeLong
Yvonne Fritz
Moe Amery
Jonathan Denis
Alison Redford
Heather Forsyth
Len Webber
Wayne Cao
Art Johnston
Dave Rodney
Teresa Woo-Paw
Manmeet Bhullar
Kyle Fawcett
Lindsay Blackett
Neil Brown
Cindy Ady
Ronald Liepert
Broyce Jacobs
Leonard Mitzel
Diana McQueen
Jack Hayden
Hector Goudreau
Tony Vandermeer
Doug Eliniski
Thomas Lukaszuk
Janice Sarich
Naresh Bhardwaj
Heather Klimchuk
Peter Sandhu
David Xiao
Raj Sherman
Gene Zwozdesky
Carl Benito
Fred Horne
Dave Hancock
Ted Morton
Premier Ed Stelmach
Mel Knight
Wayne Drysdale
George Groeneveld
Luke Ouellette
Ray Danyluk
Raymond Prins
George Rogers
Pearl Calahasen
Greg Weadick
Barry McFarland
Evan Berger
Rob Renner
Richard Marz
Frank Oberle
Mary Anne Jablonski
Cal Dallas
Ty Lund
Iris Evans
Doug Horner
Ken Allred
Fred Lindsay
Dave Quest
Arno Doerksen
Lloyd Snelgrove
Robin Campbell
Verlyn Olson
George VanderBurg
Not Available<?templateDesigner expand 1?><?templateDesigner expand 1?><?templateDesigner rowpattern first:1, next:1, firstcolor:f0f0f0, nextcolor:ffffff, apply:0?>
<?templateDesigner expand 1?><?templateDesigner expand 1?><?templateDesigner expand 1?><?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>
<?templateDesigner StyleID aped2?>Thanks for the help!
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Sorry, but I can't follow you.
The script is uncomplete and shows a bug.
The code line
<?templateDesigner StyleID aped2?>
appears too often.
This may cause a crash of Designer.
The line sould be there only once!

The second thing is, that I don't recognize the structure of your form.
As I could reproduce there is a dropdown list "mlalisting1" and a text field "TextField5".
Then I read something of "Row2".
This is a subform, text field or a table...?
How are this elements arranged with each other?

Thenm you use a JavaScript
Row2.text.value.text.value = this.rawValue;
to change the text value of Row2.
What's the role of "TextField5" in this case?
I don't see something that controls it's visibility.

Please give some more details of your form!

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Tomasz
Registered: Aug 19 2009
Posts: 5
Hi Radzmar,

Apologies for the incomplete script. It is indeed a table, and the correct script is attached below. I hope this is enough. I did notice that when I tried to start a new form and from the design view copy-paste the table it wasn't working correctly and the drop down menu list was not working at all.

I could send the complete form if you wish. I have had people try it out and send it back to me so I know the drop down menu works in my form, but its the second row that keeps coming back blank although everyone that has tested the form has been able to make a choice. When I click the drop down menu on the completed forms the 2nd row becomes visible again with their choice.

Thanks for the help.

<?templateDesigner expand 1?><?templateDesigner StyleID aped2?>Row2.Text.value.text.value = this.rawValue;Airdrie-Chestermere
Athabasca-Redwater
Banff-Cochrane
Barrhead-Morinville-Westlock
Battle River-Wainwright
Bonnyville-Cold Lake
Calgary-Bow
Calgary-Cross
Calgary-East
Calgary-Egmont
Calgary-Elbow
Calgary-Fish Creek
Calgary-Foothills
Calgary-Fort
Calgary-Hays
Calgary-Lougheed
Calgary-Mackay
Calgary-Montrose
Calgary-North Hill
Calgary-North West
Calgary-Nose Hill
Calgary-Shaw
Calgary-West
Cardston-Taber-Warner
Cypress-Medicine Hat
Drayton Valley-Calmar
Drumheller-Stettler
Dunvegan-Central Peace
Edmonton-Beverly-Clareview
Edmonton-Calder
Edmonton-Castle Downs
Edmonton-Decore
Edmonton-Ellerslie
Edmonton-Glenora
Edmonton-Manning
Edmonton-McClung
Edmonton-Meadowlark
Edmonton-Mill Creek
Edmonton-Mill Woods
Edmonton-Rutherford
Edmonton-Whitemud
Foothills-Rocky View
Fort Saskatchewan-Vegreville
Grande Prairie-Smoky
Grande Prairie-Wapiti
Highwood
Innisfail-Sylvan Lake
Lac La Biche-St. Paul
Lacombe-Ponoka
Leduc-Beaumont-Devon
Lesser Slave Lake
Lethbridge-West
Little Bow
Livingstone-Macleod
Medicine Hat
Olds-Didsbury-Three Hills
Peace River
Red Deer-North
Red Deer-South
Rocky Mountain House
Sherwood Park
Spruce Grove-Sturgeon-St. Albert
St. Albert
Stony Plain
Strathcona
Strathmore-Brooks
Vermilion-Lloydminster
West Yellowhead
Wetaskiwin-Camrose
Whitecourt-Ste. Anne
Not availableRob Anderson
Jeff Johnson
Janis Tarchuk
Ken Kowalski
Doug Griffiths
Genia Leskiw
Alana DeLong
Yvonne Fritz
Moe Amery
Jonathan Denis
Alison Redford
Heather Forsyth
Len Webber
Wayne Cao
Art Johnston
Dave Rodney
Teresa Woo-Paw
Manmeet Bhullar
Kyle Fawcett
Lindsay Blackett
Neil Brown
Cindy Ady
Ronald Liepert
Broyce Jacobs
Leonard Mitzel
Diana McQueen
Jack Hayden
Hector Goudreau
Tony Vandermeer
Doug Eliniski
Thomas Lukaszuk
Janice Sarich
Naresh Bhardwaj
Heather Klimchuk
Peter Sandhu
David Xiao
Raj Sherman
Gene Zwozdesky
Carl Benito
Fred Horne
Dave Hancock
Ted Morton
Premier Ed Stelmach
Mel Knight
Wayne Drysdale
George Groeneveld
Luke Ouellette
Ray Danyluk
Raymond Prins
George Rogers
Pearl Calahasen
Greg Weadick
Barry McFarland
Evan Berger
Rob Renner
Richard Marz
Frank Oberle
Mary Anne Jablonski
Cal Dallas
Ty Lund
Iris Evans
Doug Horner
Ken Allred
Fred Lindsay
Dave Quest
Arno Doerksen
Lloyd Snelgrove
Robin Campbell
Verlyn Olson
George VanderBurg
Not Available<?templateDesigner expand 1?><?templateDesigner expand 1?><?templateDesigner rowpattern first:1, next:1, firstcolor:f0f0f0, nextcolor:ffffff, apply:0?>
<?templateDesigner expand 1?>
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Tomasz,

as I could reproduce, your form has a drop down list with hidden data values you want to assign to the text value of a text.
Both, the dropdown and the text, are placed in a table.
I made a change of this method.

1. I deleted the table and put both field into a single subform.
2. I changed the tet to a textfield
3. I placed a calculation script to the text field
$.rawValue = mlalisting1.rawValue
Now the textfield shows the hidden value of your dropdown matching to the choosen value.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs