Highlighted

drop-down list value export into a cell

Community Beginner ,
Jul 07, 2020

Copy link to clipboard

Copied

I've inserted in a drop-down list "dropdown1" each exit value, I'd like to see the value in a cell called "unit pricerow1" at the time I select one particular object from the list. Is it possibile? If yes, how can I do it?

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Yes. Use this code as the custom calculation script of the target field:

event.value = this.getField("dropdown1").valueAsString;

Make sure to tick the option to commit the selected value immediately, under the Properties of the drop-down field, in the Options tab.

Topics

How to

Views

46

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

drop-down list value export into a cell

Community Beginner ,
Jul 07, 2020

Copy link to clipboard

Copied

I've inserted in a drop-down list "dropdown1" each exit value, I'd like to see the value in a cell called "unit pricerow1" at the time I select one particular object from the list. Is it possibile? If yes, how can I do it?

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Yes. Use this code as the custom calculation script of the target field:

event.value = this.getField("dropdown1").valueAsString;

Make sure to tick the option to commit the selected value immediately, under the Properties of the drop-down field, in the Options tab.

Topics

How to

Views

47

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Most Valuable Participant ,
Jul 07, 2020

Copy link to clipboard

Copied

Yes. Use this code as the custom calculation script of the target field:

event.value = this.getField("dropdown1").valueAsString;

Make sure to tick the option to commit the selected value immediately, under the Properties of the drop-down field, in the Options tab.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Jul 08, 2020

Copy link to clipboard

Copied

I've inserted the code you've written in the target field but it doesn't work. 

Cattura1.PNG

If I select one Object it doesn't appear the price in the target field. 

This below is what I'd like to happen:

Cattura.PNG

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Most Valuable Participant ,
Jul 08, 2020

Copy link to clipboard

Copied

The name of the field is "Dropdown1", not "dropdown1"... JavaScript is case-sensitive.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Jul 08, 2020

Copy link to clipboard

Copied

Oh... sorry! Now everything is working, thank u so much! I need to get used to all this small details

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Resources
One Stop Solution for Acrobat
Edit a PDF