Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

I need help with! scripts for a livecycle form.....please

Avatar

Avatar
Level 1
trf22
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
trf22
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
trf22
Level 1

04-06-2017

I'm trying to create a form that populates two different text fields based on the selection of a drop down menu. I have no scripting knowledge and am confused by everything I'm reading online. Can someone please help me.

I'm attaching the file. I already made the form but can't figure out how to do the drop downs.

I want to made a selection in the Item field and then I want it automatically populate the description and price.

HELP!

I am attaching links for the form and an excel document with the items, descriptions and prices.

Dropbox - ESI Quoe Template.pdf

Dropbox - item code.xlsx

Thank you so much for any help!

Tara

Accepted Solutions (0)

Answers (5)

Answers (5)

Avatar

Avatar
Validate 1
Level 3
jeanette614
Level 3

Likes

5 likes

Total Posts

129 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
jeanette614
Level 3

Likes

5 likes

Total Posts

129 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
jeanette614
Level 3

09-06-2017

I'm looking at your form and I have a question. I also do not write any javascript code but use the Tools section to set up a "Condition" and then a "Result".

But my question is, doesn't every item in your item list HAVE or correspond to an item description? If so, this would be easier to NOT have a list box for the description and unit price but have a text field that displays the proper description for the item and price when something is chosen from the list.

Or do I misunderstand the problem?

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

270 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

270 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

06-06-2017

Hi Tara,

Try this JavaScript code in the change event of your Item dropdown;

var itemIndex = this.boundItem(xfa.event.change) - 1

Description.setItemState( itemIndex , true )

UnitPrice.setItemState( itemIndex , true )

This gets the index of the selected item in the Item dropdown and sets the Description and UnitPrice with the same index.

Regards

Bruce 

Avatar

Avatar
Level 1
trf22
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
trf22
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
trf22
Level 1

05-06-2017

The correct link is

Dropbox - ESI Quoe Template.pdf

Avatar

Avatar
Affirm 1
Level 1
camilot95966368
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
camilot95966368
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile
camilot95966368
Level 1

05-06-2017

Hi Tara,

The PDF Dropbox link is not working. Can you update?

Avatar

Avatar
Boost 5
Level 4
George_Johnson
Level 4

Likes

21 likes

Total Posts

234 posts

Correct Reply

27 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Level 4
George_Johnson
Level 4

Likes

21 likes

Total Posts

234 posts

Correct Reply

27 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
George_Johnson
Level 4

04-06-2017

Moved to the LiveCycle Designer forum: LiveCycle Designer