Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Button that triggers the text filling in

New Here ,
Nov 23, 2017 Nov 23, 2017

Hi,

I would like to make a button that automatically fills out my form.

Actually, I am trying to make a sort of a shopping cart, when I press the button the text attached to this button will appear in my form, text - in one colomn and a price in the other one. The prices sum up to get the total.

Could anyone tell me if its possible to do with javascript, and if yes what code to use?

You would really help me out, thanx in advance fot your answers

TOPICS
Acrobat SDK and JavaScript , Windows
411
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 27, 2017 Dec 27, 2017

Yes this is possible. Read this article:

https://acrobatusers.com/tutorials/change_another_field

And this one, that comes with an example of an order form, but its more complicated than you probably want

https://acrobatusers.com/tutorials/js_list_combo_livecycle

And you'll find an example Rental Form here, that acts just like the order form you're asking aboutl

https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-2

Translate
Adobe Employee ,
Dec 25, 2017 Dec 25, 2017

Hi Yannickg,

Sorry for the delay in response.

I don't have an answer to this question, but I guess this may be possible with JavaScript.

I am moving this thread to JavaScript forum and suggest you wait for experts to help you with your query.

-Tariq Dar

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 25, 2017 Dec 25, 2017

Yes, it is. Are you using a single field for the "summary", or multiple ones? How about if the customer wants to remove an item from the basket?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 27, 2017 Dec 27, 2017
LATEST

Yes this is possible. Read this article:

https://acrobatusers.com/tutorials/change_another_field

And this one, that comes with an example of an order form, but its more complicated than you probably want

https://acrobatusers.com/tutorials/js_list_combo_livecycle

And you'll find an example Rental Form here, that acts just like the order form you're asking aboutl

https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-2

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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