Skip to main content
Participant
November 23, 2017
Answered

Button that triggers the text filling in

  • November 23, 2017
  • 3 replies
  • 445 views

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

This topic has been closed for replies.
Correct answer Thom Parker

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

3 replies

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
December 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

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
December 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?

Community Manager
December 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